Skip to content

fix(playlist): support lockupViewModel and modern playlist layouts - #249

Open
parminn wants to merge 1 commit into
lavalink-devs:mainfrom
parminn:fix/lockup-view-model-playlist
Open

parminn wants to merge 1 commit into
lavalink-devs:mainfrom
parminn:fix/lockup-view-model-playlist

Conversation

@parminn

@parminn parminn commented Oct 8, 2026

Copy link
Copy Markdown

Summary

YouTube has been gradually rolling out a new playlist page layout where playlist items are delivered as lockupViewModel elements rather than the traditional playlistVideoRenderer. In addition, modern playlist titles are frequently delivered under header.pageHeaderRenderer or metadata.playlistMetadataRenderer instead of header.playlistHeaderRenderer.

When playlistVideoRenderer is absent:

  • NonMusicClient#extractPlaylistTracks extracted 0 tracks, throwing FriendlyException("Could not find tracks from playlist.").
  • NonMusicClient#extractPlaylistName returned null.
  • Web#extractPlaylistVideoList failed to find playlistVideoListRenderer in itemSectionRenderer.contents.

Changes

  1. NonMusicClient#extractPlaylistTracks: Added support for extracting tracks from lockupViewModel (contentId, lockupMetadataViewModel.title, author metadata rows, and overlay time status renderer for duration).
  2. NonMusicClient#extractPlaylistName: Added fallback checks for pageHeaderRenderer and playlistMetadataRenderer.
  3. ThumbnailNonMusicClient#extractPlaylistTracks: Added matching lockupViewModel parsing support with thumbnail extraction.
  4. Web#extractPlaylistVideoList: Fall back to direct itemSectionRenderer.contents when playlistVideoListRenderer is absent.

Testing

  • Built and ran tests with ./gradlew test and ./gradlew assemble (all tests passed with 0 errors).
  • Maintained full backward compatibility with legacy playlistVideoRenderer payloads.

@ashton045

Copy link
Copy Markdown

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.

@parminn

parminn commented Oct 10, 2026 •

Copy link
Copy Markdown
Author

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.

I checked #229 — it's great to see extractLockupTrack addressed there as well.

The main reasons for keeping this as a dedicated PR:

  1. Isolated & fast to review: This is scoped strictly to the playlist lockupViewModel / header breakage, so it can be merged without depending on the larger remote poToken changes in Add remote poToken support #229.
  2. Base client & thumbnail coverage: Besides Web, placing the parsing in NonMusicClient and ThumbnailNonMusicClient ensures thumbnail extraction and other non-music clients don't miss out on playlist items.
  3. Header fallbacks: It also covers pageHeaderRenderer and playlistMetadataRenderer when playlistHeaderRenderer is omitted in the new layout.

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants