New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[video] Fix watched overlay image of parent movie item #24509
Conversation
45052a0
to
1bf1c36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix seems to be correct.
And special thanks for this interface cleanup. It was so confusing before.
Thanks! Yes this is great. Working well / as expected now. |
Just wondering as I'm adjusting my skin to the recent changes: Is the "reasonable value" for the watched status here really to take over the value of the default version? Shouldn't it behave like with sets: a median value of all versions? |
Good question. Current design is different from everything else we have in Kodi. The node represents both a folder and a movie (the parent or default version). Currently, context menu actions, art, state indicators are for the movie, not the folder. We should not start mixing data! |
Ok, makes sense with that explanation 👍🏻 |
This could be refined but I don't think in v21. There are some performance implications. |
Description
The watched/unwatched overlay icon doesn't need to be overriden to "always watched" for the parent item of versions when navigation of versions as a folder is enabled. It is already set with a reasonable value (watched status of the default version).
FYI @jurialmunkey could you confirm it fixes the issue.
I used the opportunity to refactor SetOverlayImage() calls a bit with a second commit, the API was confusing with an inverted bool condition, there was a weird +1 in the overlay index... No change in the logic or the results.
Motivation and context
Fix #24493
How has this been tested?
movie without versions watched/unwatched, movie with versions and default version watched/unwatched.
What is the effect on users?
Some skins depend on ListItem.Overlay
Screenshots (if appropriate):
The effect is not visible in standard Estuary but a change suggested in #24493 adds a label displaying the overlay image name in purple at the bottom of the screen.
before, with no versions watched:
after, with no versions watched, or versions watched except for the default version:
after, with the default version watched:
Types of change
Checklist: