handle external imageUrl

This commit is contained in:
jeffvli
2026-02-07 01:52:58 -08:00
parent bec6464a44
commit 3b3e77b672
7 changed files with 19 additions and 0 deletions
@@ -94,6 +94,7 @@ export const FullScreenPlayerImage = () => {
const currentImageUrl = useItemImageUrl({
id: currentSong?.imageId || undefined,
imageUrl: currentSong?.imageUrl,
itemType: LibraryItem.SONG,
serverId: currentSong?._serverId,
type: 'fullScreenPlayer',
@@ -101,6 +102,7 @@ export const FullScreenPlayerImage = () => {
const nextImageUrl = useItemImageUrl({
id: nextSong?.imageId || undefined,
imageUrl: nextSong?.imageUrl,
itemType: LibraryItem.SONG,
serverId: nextSong?._serverId,
type: 'fullScreenPlayer',
@@ -83,13 +83,17 @@ const BackgroundImage = memo(({ dynamicBackground, dynamicIsImage }: BackgroundI
const currentImageUrl = useItemImageUrl({
id: currentSong?.imageId || undefined,
imageUrl: currentSong?.imageUrl,
itemType: LibraryItem.SONG,
serverId: currentSong?._serverId,
type: 'itemCard',
});
const nextImageUrl = useItemImageUrl({
id: nextSong?.imageId || undefined,
imageUrl: nextSong?.imageUrl,
itemType: LibraryItem.SONG,
serverId: nextSong?._serverId,
type: 'itemCard',
});
@@ -140,6 +140,7 @@ export const LeftControls = () => {
id={currentSong?.imageId}
itemType={LibraryItem.SONG}
serverId={currentSong?._serverId}
src={currentSong?.imageUrl}
type="table"
/>
)}
@@ -102,14 +102,18 @@ export const MobileFullscreenPlayerAlbumArt = () => {
const currentImageUrl = useItemImageUrl({
id: currentSong?.imageId || undefined,
imageUrl: currentSong?.imageUrl,
itemType: LibraryItem.SONG,
serverId: currentSong?._serverId,
size: mainImageDimensions.idealSize,
type: 'fullScreenPlayer',
});
const nextImageUrl = useItemImageUrl({
id: nextSong?.imageId || undefined,
imageUrl: nextSong?.imageUrl,
itemType: LibraryItem.SONG,
serverId: nextSong?._serverId,
size: mainImageDimensions.idealSize,
type: 'fullScreenPlayer',
});
@@ -81,13 +81,17 @@ const BackgroundImage = memo(({ dynamicBackground, dynamicIsImage }: BackgroundI
const currentImageUrl = useItemImageUrl({
id: currentSong?.imageId || undefined,
imageUrl: currentSong?.imageUrl,
itemType: LibraryItem.SONG,
serverId: currentSong?._serverId,
type: 'itemCard',
});
const nextImageUrl = useItemImageUrl({
id: nextSong?.imageId || undefined,
imageUrl: nextSong?.imageUrl,
itemType: LibraryItem.SONG,
serverId: nextSong?._serverId,
type: 'itemCard',
});
@@ -310,6 +314,7 @@ const MobilePlayerContainer = memo(
id: currentSong?.imageId || undefined,
imageUrl: currentSong?.imageUrl,
itemType: LibraryItem.SONG,
serverId: currentSong?._serverId,
type: 'itemCard',
});
const { background } = useFastAverageColor({
@@ -98,6 +98,8 @@ export const MobilePlayerbar = () => {
fetchPriority="high"
id={currentSong.imageId}
itemType={LibraryItem.SONG}
serverId={currentSong?._serverId}
src={currentSong?.imageUrl}
type="table"
/>
</Tooltip>
@@ -170,6 +170,7 @@ const SidebarImage = () => {
const imageUrl = useItemImageUrl({
id: currentSong?.imageId || undefined,
imageUrl: currentSong?.imageUrl,
itemType: LibraryItem.SONG,
serverId: currentSong?._serverId,
type: 'sidebar',