Repository navigation
Conversation
|
could you check #229 there's a commit in that PR which fixes it for certain clients, but the thumbnail extraction is a good reminder. |
Author
I checked #229 — it's great to see The main reasons for keeping this as a dedicated PR:
If the maintainers prefer merging this isolated fix first, it's ready to go. Alternatively, feel free to cherry-pick the thumbnail and base client improvements into #229 if you want to bundle it all there! |
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.
Summary
YouTube has been gradually rolling out a new playlist page layout where playlist items are delivered as
lockupViewModelelements rather than the traditionalplaylistVideoRenderer. In addition, modern playlist titles are frequently delivered underheader.pageHeaderRendererormetadata.playlistMetadataRendererinstead ofheader.playlistHeaderRenderer.When
playlistVideoRendereris absent:NonMusicClient#extractPlaylistTracksextracted 0 tracks, throwingFriendlyException("Could not find tracks from playlist.").NonMusicClient#extractPlaylistNamereturnednull.Web#extractPlaylistVideoListfailed to findplaylistVideoListRendererinitemSectionRenderer.contents.Changes
NonMusicClient#extractPlaylistTracks: Added support for extracting tracks fromlockupViewModel(contentId,lockupMetadataViewModel.title, author metadata rows, and overlay time status renderer for duration).NonMusicClient#extractPlaylistName: Added fallback checks forpageHeaderRendererandplaylistMetadataRenderer.ThumbnailNonMusicClient#extractPlaylistTracks: Added matchinglockupViewModelparsing support with thumbnail extraction.Web#extractPlaylistVideoList: Fall back to directitemSectionRenderer.contentswhenplaylistVideoListRendereris absent.Testing
./gradlew testand./gradlew assemble(all tests passed with 0 errors).playlistVideoRendererpayloads.