fix(queue): resolve real track covers in queue panel
Queue rows passed albumArtUrl straight to ArtTile, but for tracks that
field is usually empty — the real cover is served per-track from
/tracks/{id}/cover. Apply the same resolution PersistentPlayer uses
(getCoverUrl ?? getTrackCoverUrl) for both the now-playing tile and the
up-next rows.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,7 @@ export interface ResolvedQueueEntry {
|
||||
albumTitle: string;
|
||||
durationMs: number;
|
||||
hasCover: boolean;
|
||||
albumArtUrl?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -33,5 +34,6 @@ export function useResolvedQueueEntry(
|
||||
albumTitle: data?.albumTitle ?? entry.albumTitle,
|
||||
durationMs: data?.durationMs ?? entry.durationMs,
|
||||
hasCover: data?.hasCover ?? false,
|
||||
albumArtUrl: data?.albumArtUrl ?? entry.albumArtUrl,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user