mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
handle external imageUrl
This commit is contained in:
@@ -94,6 +94,7 @@ export const FullScreenPlayerImage = () => {
|
|||||||
|
|
||||||
const currentImageUrl = useItemImageUrl({
|
const currentImageUrl = useItemImageUrl({
|
||||||
id: currentSong?.imageId || undefined,
|
id: currentSong?.imageId || undefined,
|
||||||
|
imageUrl: currentSong?.imageUrl,
|
||||||
itemType: LibraryItem.SONG,
|
itemType: LibraryItem.SONG,
|
||||||
serverId: currentSong?._serverId,
|
serverId: currentSong?._serverId,
|
||||||
type: 'fullScreenPlayer',
|
type: 'fullScreenPlayer',
|
||||||
@@ -101,6 +102,7 @@ export const FullScreenPlayerImage = () => {
|
|||||||
|
|
||||||
const nextImageUrl = useItemImageUrl({
|
const nextImageUrl = useItemImageUrl({
|
||||||
id: nextSong?.imageId || undefined,
|
id: nextSong?.imageId || undefined,
|
||||||
|
imageUrl: nextSong?.imageUrl,
|
||||||
itemType: LibraryItem.SONG,
|
itemType: LibraryItem.SONG,
|
||||||
serverId: nextSong?._serverId,
|
serverId: nextSong?._serverId,
|
||||||
type: 'fullScreenPlayer',
|
type: 'fullScreenPlayer',
|
||||||
|
|||||||
@@ -83,13 +83,17 @@ const BackgroundImage = memo(({ dynamicBackground, dynamicIsImage }: BackgroundI
|
|||||||
|
|
||||||
const currentImageUrl = useItemImageUrl({
|
const currentImageUrl = useItemImageUrl({
|
||||||
id: currentSong?.imageId || undefined,
|
id: currentSong?.imageId || undefined,
|
||||||
|
imageUrl: currentSong?.imageUrl,
|
||||||
itemType: LibraryItem.SONG,
|
itemType: LibraryItem.SONG,
|
||||||
|
serverId: currentSong?._serverId,
|
||||||
type: 'itemCard',
|
type: 'itemCard',
|
||||||
});
|
});
|
||||||
|
|
||||||
const nextImageUrl = useItemImageUrl({
|
const nextImageUrl = useItemImageUrl({
|
||||||
id: nextSong?.imageId || undefined,
|
id: nextSong?.imageId || undefined,
|
||||||
|
imageUrl: nextSong?.imageUrl,
|
||||||
itemType: LibraryItem.SONG,
|
itemType: LibraryItem.SONG,
|
||||||
|
serverId: nextSong?._serverId,
|
||||||
type: 'itemCard',
|
type: 'itemCard',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -140,6 +140,7 @@ export const LeftControls = () => {
|
|||||||
id={currentSong?.imageId}
|
id={currentSong?.imageId}
|
||||||
itemType={LibraryItem.SONG}
|
itemType={LibraryItem.SONG}
|
||||||
serverId={currentSong?._serverId}
|
serverId={currentSong?._serverId}
|
||||||
|
src={currentSong?.imageUrl}
|
||||||
type="table"
|
type="table"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -102,14 +102,18 @@ export const MobileFullscreenPlayerAlbumArt = () => {
|
|||||||
|
|
||||||
const currentImageUrl = useItemImageUrl({
|
const currentImageUrl = useItemImageUrl({
|
||||||
id: currentSong?.imageId || undefined,
|
id: currentSong?.imageId || undefined,
|
||||||
|
imageUrl: currentSong?.imageUrl,
|
||||||
itemType: LibraryItem.SONG,
|
itemType: LibraryItem.SONG,
|
||||||
|
serverId: currentSong?._serverId,
|
||||||
size: mainImageDimensions.idealSize,
|
size: mainImageDimensions.idealSize,
|
||||||
type: 'fullScreenPlayer',
|
type: 'fullScreenPlayer',
|
||||||
});
|
});
|
||||||
|
|
||||||
const nextImageUrl = useItemImageUrl({
|
const nextImageUrl = useItemImageUrl({
|
||||||
id: nextSong?.imageId || undefined,
|
id: nextSong?.imageId || undefined,
|
||||||
|
imageUrl: nextSong?.imageUrl,
|
||||||
itemType: LibraryItem.SONG,
|
itemType: LibraryItem.SONG,
|
||||||
|
serverId: nextSong?._serverId,
|
||||||
size: mainImageDimensions.idealSize,
|
size: mainImageDimensions.idealSize,
|
||||||
type: 'fullScreenPlayer',
|
type: 'fullScreenPlayer',
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -81,13 +81,17 @@ const BackgroundImage = memo(({ dynamicBackground, dynamicIsImage }: BackgroundI
|
|||||||
|
|
||||||
const currentImageUrl = useItemImageUrl({
|
const currentImageUrl = useItemImageUrl({
|
||||||
id: currentSong?.imageId || undefined,
|
id: currentSong?.imageId || undefined,
|
||||||
|
imageUrl: currentSong?.imageUrl,
|
||||||
itemType: LibraryItem.SONG,
|
itemType: LibraryItem.SONG,
|
||||||
|
serverId: currentSong?._serverId,
|
||||||
type: 'itemCard',
|
type: 'itemCard',
|
||||||
});
|
});
|
||||||
|
|
||||||
const nextImageUrl = useItemImageUrl({
|
const nextImageUrl = useItemImageUrl({
|
||||||
id: nextSong?.imageId || undefined,
|
id: nextSong?.imageId || undefined,
|
||||||
|
imageUrl: nextSong?.imageUrl,
|
||||||
itemType: LibraryItem.SONG,
|
itemType: LibraryItem.SONG,
|
||||||
|
serverId: nextSong?._serverId,
|
||||||
type: 'itemCard',
|
type: 'itemCard',
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -310,6 +314,7 @@ const MobilePlayerContainer = memo(
|
|||||||
id: currentSong?.imageId || undefined,
|
id: currentSong?.imageId || undefined,
|
||||||
imageUrl: currentSong?.imageUrl,
|
imageUrl: currentSong?.imageUrl,
|
||||||
itemType: LibraryItem.SONG,
|
itemType: LibraryItem.SONG,
|
||||||
|
serverId: currentSong?._serverId,
|
||||||
type: 'itemCard',
|
type: 'itemCard',
|
||||||
});
|
});
|
||||||
const { background } = useFastAverageColor({
|
const { background } = useFastAverageColor({
|
||||||
|
|||||||
@@ -98,6 +98,8 @@ export const MobilePlayerbar = () => {
|
|||||||
fetchPriority="high"
|
fetchPriority="high"
|
||||||
id={currentSong.imageId}
|
id={currentSong.imageId}
|
||||||
itemType={LibraryItem.SONG}
|
itemType={LibraryItem.SONG}
|
||||||
|
serverId={currentSong?._serverId}
|
||||||
|
src={currentSong?.imageUrl}
|
||||||
type="table"
|
type="table"
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|||||||
@@ -170,6 +170,7 @@ const SidebarImage = () => {
|
|||||||
|
|
||||||
const imageUrl = useItemImageUrl({
|
const imageUrl = useItemImageUrl({
|
||||||
id: currentSong?.imageId || undefined,
|
id: currentSong?.imageId || undefined,
|
||||||
|
imageUrl: currentSong?.imageUrl,
|
||||||
itemType: LibraryItem.SONG,
|
itemType: LibraryItem.SONG,
|
||||||
serverId: currentSong?._serverId,
|
serverId: currentSong?._serverId,
|
||||||
type: 'sidebar',
|
type: 'sidebar',
|
||||||
|
|||||||
Reference in New Issue
Block a user