Repository navigation
Conversation
Movies on Play have no playlists: the program's nextVideo is the movie itself. Show it as a single playable item instead of the 'not available in the catalogue' dialog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
|
The CI failure is unrelated to this change. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Selecting a movie shows "This program is not available in the catalogue." instead of playing it.
For movies,
/tv/v2/programs/<uuid>returnstype: MOVIEwith an emptyplaylistslist, so the add-on finds no seasons. The movie's own video is innextVideo. For example, programb8e69a6f-6048-46ed-846b-d3e9a3ffe1b1(A Home Built With Blood) hasnextVideod4bf5cc2-51cf-43a4-bc71-7e640866fd5b, and/tv/v1/videos/long-form/returns that video with the same title.With this change,
_parse_program_datastoresnextVideoasProgram.videowhen a program has no seasons.show_programthen lists it as a single playable item (mediatype movie, with poster) instead of showing the dialog. Programs with seasons are unchanged.Tested on Kodi 21.3 (LibreELEC 12.2.1, ARM64):
.pylintrcrates the changed files 10/10.🤖 Generated with Claude Code