From d9da588c7c5e332ca6819a2f8ea442997c0682a8 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Tue, 26 May 2026 22:06:40 -0700 Subject: [PATCH] add workaround for identical Jellyfin release name bug (#2041) --- src/renderer/api/jellyfin/jellyfin-controller.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/api/jellyfin/jellyfin-controller.ts b/src/renderer/api/jellyfin/jellyfin-controller.ts index 58c3cb9c8..360bef1c3 100644 --- a/src/renderer/api/jellyfin/jellyfin-controller.ts +++ b/src/renderer/api/jellyfin/jellyfin-controller.ts @@ -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,