mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
fix subsonic / jellyfin issues
This commit is contained in:
@@ -619,7 +619,7 @@ export const SubsonicController: InternalControllerEndpoint = {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
getGenreList: async ({ apiClientProps, query }) => {
|
getGenreList: async ({ apiClientProps, query }) => {
|
||||||
const sortOrder = query.sortOrder.toLowerCase() as 'asc' | 'desc';
|
const sortOrder = (query.sortOrder?.toLowerCase() ?? 'asc') as 'asc' | 'desc';
|
||||||
|
|
||||||
const res = await ssApiClient(apiClientProps).getGenres({});
|
const res = await ssApiClient(apiClientProps).getGenres({});
|
||||||
|
|
||||||
|
|||||||
@@ -295,16 +295,17 @@ const normalizeAlbum = (
|
|||||||
createdAt: item.DateCreated,
|
createdAt: item.DateCreated,
|
||||||
duration: item.RunTimeTicks / 10000,
|
duration: item.RunTimeTicks / 10000,
|
||||||
explicitStatus: null,
|
explicitStatus: null,
|
||||||
genres: item.GenreItems?.map((entry) => ({
|
genres:
|
||||||
_itemType: LibraryItem.GENRE,
|
item.GenreItems?.map((entry) => ({
|
||||||
_serverId: server?.id || '',
|
_itemType: LibraryItem.GENRE,
|
||||||
_serverType: ServerType.JELLYFIN,
|
_serverId: server?.id || '',
|
||||||
albumCount: null,
|
_serverType: ServerType.JELLYFIN,
|
||||||
id: entry.Id,
|
albumCount: null,
|
||||||
imageUrl: null,
|
id: entry.Id,
|
||||||
name: entry.Name,
|
imageUrl: null,
|
||||||
songCount: null,
|
name: entry.Name,
|
||||||
})),
|
songCount: null,
|
||||||
|
})) || [],
|
||||||
id: item.Id,
|
id: item.Id,
|
||||||
imagePlaceholderUrl: null,
|
imagePlaceholderUrl: null,
|
||||||
imageUrl: getAlbumCoverArtUrl({
|
imageUrl: getAlbumCoverArtUrl({
|
||||||
|
|||||||
Reference in New Issue
Block a user