From ad1dfc74a8f4a883ccac1f888080d923f5d25877 Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 16 Nov 2026 09:58:52 -0500 Subject: [PATCH] fix: a resumed queue loads its cover art at launch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit restorePersistedState rebuilt the queue with each track's artworkPath but never fetched the image — only startCurrent and the gapless hand-off did. So after a relaunch the paused Home hero, the pill and the lock screen all showed the monogram until play was pressed (Tim's Duo, Goose 11/11/26: the catalog's img.url resolves and loads fine). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VriHZgxEZZHunPFyTvTmjt --- AppleNugs/Player/PlayerService.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AppleNugs/Player/PlayerService.swift b/AppleNugs/Player/PlayerService.swift index 0ae2cd7..16c556f 100644 --- a/AppleNugs/Player/PlayerService.swift +++ b/AppleNugs/Player/PlayerService.swift @@ -1169,6 +1169,12 @@ final class PlayerService { // Anchor listening there too: the offset was heard last session. lastCreditPosition = saved.position } + // Fetch the cover now, not on the first play: a resumed queue sits + // paused on Home's hero, the pill and the lock screen, and without + // this every one of them showed the monogram until play was pressed. + // Same pairing as `startCurrent()` — the push below goes out at once + // with no art, and `loadArtwork` re-pushes when the image lands. + loadArtwork(for: current) pushNowPlayingInfo() }