mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +00:00
Add top song list for jellyfin
This commit is contained in:
parent
f08538cbfb
commit
c0a703be7a
7 changed files with 48 additions and 12 deletions
|
|
@ -105,8 +105,8 @@ export const AlbumArtistDetailContent = () => {
|
|||
});
|
||||
|
||||
const topSongsQuery = useTopSongsList(
|
||||
{ artist: detailQuery?.data?.name || '' },
|
||||
{ enabled: server?.type !== ServerType.JELLYFIN && !!detailQuery?.data?.name },
|
||||
{ artist: detailQuery?.data?.name || '', artistId: albumArtistId },
|
||||
{ enabled: !!detailQuery?.data?.name },
|
||||
);
|
||||
|
||||
const topSongsColumnDefs: ColDef[] = useMemo(
|
||||
|
|
@ -270,11 +270,13 @@ export const AlbumArtistDetailContent = () => {
|
|||
ARTIST_CONTEXT_MENU_ITEMS,
|
||||
);
|
||||
|
||||
console.log('topSongsQuery?.data :>> ', topSongsQuery?.data);
|
||||
|
||||
const topSongs = topSongsQuery?.data?.items?.slice(0, 10);
|
||||
|
||||
const showBiography =
|
||||
detailQuery?.data?.biography !== undefined && detailQuery?.data?.biography !== null;
|
||||
const showTopSongs = server?.type !== ServerType.JELLYFIN && topSongsQuery?.data?.items?.length;
|
||||
const showTopSongs = topSongsQuery?.data?.items?.length;
|
||||
const showGenres = detailQuery?.data?.genres ? detailQuery?.data?.genres.length !== 0 : false;
|
||||
|
||||
const isLoading =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue