Skip to content

fix(playlist): resolve blank YouTube liked songs playlist and complete library pagination - #429

Merged
ajisth69 merged 1 commit into
mainfrom
fix/liked-songs-complete-pagination-and-playlist
Oct 26, 2026
Merged

ajisth69 merged 1 commit into
mainfrom
fix/liked-songs-complete-pagination-and-playlist

Conversation

@ajisth69

Copy link
Copy Markdown
Member

Summary of Changes

  1. Fix YouTube Liked Songs Playlist Empty / Blank Issue:

    • Corrected browse ID resolution in InnerTubeMusicApi.kt from invalid "VLM" to YT_LIKED_BROWSE_ID ("VLLM").
    • Extended isYtLikedId in PlaylistImportManager.kt so all liked aliases (LM, VLLM, yt_liked, VLM) route to the authenticated browse endpoint.
    • In YtMusicLibraryManager.kt, stopped emitting a 0-track stub during initial load that clears loading indicators prematurely, and persist tracks to disk cache even on partial/in-progress sync so playlists never open blank.
    • In PlaylistViewModel.kt, ensured isDetailLoading remains true until tracks are loaded.
  2. Fix Missing Songs / Truncation (1148 in YouTube app vs ~700 in LastWave):

    • In InnerTubeMusicApi.kt, parseSongRenderers now always collects playlistVideoRenderer alongside musicResponsiveListItemRenderer, ensuring music videos, user uploads, and other video tracks included in YouTube liked items are captured rather than skipped when on the same page.
    • Paging continuation now falls back to generic token extraction, retries up to 3 times on transient network failures with backoff, and continues to the next continuation token if a page contains only deleted/unavailable video items rather than aborting prematurely.
    • Added cooperative pacing between continuation batches to prevent anti-scraping rate limits.

@ajisth69
ajisth69 merged commit ca5f6ad into main Oct 26, 2026
1 check failed
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.

1 participant