add workaround for identical Jellyfin release name bug (#2041)

This commit is contained in:
jeffvli
2026-05-26 22:06:40 -07:00
parent e206136156
commit d9da588c7c
@@ -411,8 +411,12 @@ export const JellyfinController: InternalControllerEndpoint = {
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(
{ ...res.body, Songs: songsRes.body.Items },
{ ...res.body, Songs: songs },
apiClientProps.server,
args.context?.pathReplace,
args.context?.pathReplaceWith,