Fix "Fill missing album tracks" button never pushing to the Plex Wish List #60

Merged
neerdoc merged 1 commit from macsome_20 into main 2026-08-03 18:17:23 +00:00
Owner

Confirmed live: the button correctly finds album gaps and adds them to the
wanted table (Qobuz purchase links show up fine), but fill_missing_tracks()
only ever called engine.fill_missing_album_tracks() and re-read the DB
state — it never called fetch_ma_playlists()/sync_wishlist_playlist() at
all, so nothing ever reached the actual Apple Music Wish List playlist.
The no_uri_tracks/_apple_resolve_uri support built for exactly this case
(gap-filled tracks have no MA-sourced URI) was sitting there unused because
this entrypoint never invoked the wishlist push in the first place.

fill_missing_tracks() now fetches the wishlist playlist and calls
sync_wishlist_playlist() afterward, mirroring _do_sync()'s existing
pattern (uri_index/no_uri_tracks build, resolved_uris persisted back via
record_resolved_uris).

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

Confirmed live: the button correctly finds album gaps and adds them to the wanted table (Qobuz purchase links show up fine), but fill_missing_tracks() only ever called engine.fill_missing_album_tracks() and re-read the DB state — it never called fetch_ma_playlists()/sync_wishlist_playlist() at all, so nothing ever reached the actual Apple Music Wish List playlist. The no_uri_tracks/_apple_resolve_uri support built for exactly this case (gap-filled tracks have no MA-sourced URI) was sitting there unused because this entrypoint never invoked the wishlist push in the first place. fill_missing_tracks() now fetches the wishlist playlist and calls sync_wishlist_playlist() afterward, mirroring _do_sync()'s existing pattern (uri_index/no_uri_tracks build, resolved_uris persisted back via record_resolved_uris). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Confirmed live: the button correctly finds album gaps and adds them to the
wanted table (Qobuz purchase links show up fine), but fill_missing_tracks()
only ever called engine.fill_missing_album_tracks() and re-read the DB
state — it never called fetch_ma_playlists()/sync_wishlist_playlist() at
all, so nothing ever reached the actual Apple Music Wish List playlist.
The no_uri_tracks/_apple_resolve_uri support built for exactly this case
(gap-filled tracks have no MA-sourced URI) was sitting there unused because
this entrypoint never invoked the wishlist push in the first place.

fill_missing_tracks() now fetches the wishlist playlist and calls
sync_wishlist_playlist() afterward, mirroring _do_sync()'s existing
pattern (uri_index/no_uri_tracks build, resolved_uris persisted back via
record_resolved_uris).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
WulfScience-FOSS/ha-music-own!60
No description provided.