mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-12 23:32:19 +02:00
add workaround for identical Jellyfin release name bug (#2041)
This commit is contained in:
@@ -411,8 +411,12 @@ export const JellyfinController: InternalControllerEndpoint = {
|
|||||||
throw new Error('Failed to get album detail');
|
throw new Error('Failed to get album detail');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Workaround for Jellyfin bug that returns items that share the same album name
|
||||||
|
const albumIdSet = new Set([query.id]);
|
||||||
|
const songs = songsRes.body.Items.filter((item) => albumIdSet.has(item.AlbumId!));
|
||||||
|
|
||||||
return jfNormalize.album(
|
return jfNormalize.album(
|
||||||
{ ...res.body, Songs: songsRes.body.Items },
|
{ ...res.body, Songs: songs },
|
||||||
apiClientProps.server,
|
apiClientProps.server,
|
||||||
args.context?.pathReplace,
|
args.context?.pathReplace,
|
||||||
args.context?.pathReplaceWith,
|
args.context?.pathReplaceWith,
|
||||||
|
|||||||
Reference in New Issue
Block a user