use correct id for runtime images in useItemImageUrl

This commit is contained in:
jeffvli
2025-12-26 14:04:48 -08:00
parent fb8245539f
commit dff182cbc5
19 changed files with 25 additions and 23 deletions
@@ -76,13 +76,13 @@ const BackgroundImage = memo(({ dynamicBackground, dynamicIsImage }: BackgroundI
const { nextSong } = usePlayerData();
const currentImageUrl = useItemImageUrl({
id: currentSong?.id,
id: currentSong?.imageId || undefined,
itemType: LibraryItem.SONG,
type: 'itemCard',
});
const nextImageUrl = useItemImageUrl({
id: nextSong?.id,
id: nextSong?.imageId || undefined,
itemType: LibraryItem.SONG,
type: 'itemCard',
});
@@ -303,7 +303,7 @@ const MobilePlayerContainer = memo(
({ children, dynamicBackground, dynamicIsImage }: MobilePlayerContainerProps) => {
const currentSong = usePlayerSong();
const imageUrl = useItemImageUrl({
id: currentSong?.id,
id: currentSong?.imageId || undefined,
imageUrl: currentSong?.imageUrl,
itemType: LibraryItem.SONG,
type: 'itemCard',