From db84f6529ab285be26c96daaab065dfabf347417 Mon Sep 17 00:00:00 2001 From: InvalidArgumentException <150857901+InvalidArgumentException@users.noreply.github.com> Date: Thu, 1 Feb 2024 12:10:06 +0100 Subject: [PATCH] fix(jellyfin.ts): process virtual seasons if they have non virtual episodes (#639) All seasons are processed now, but those without any episodes are filtered out again as unavailable. This fixes in issue where jellyfin reports all seasons as virtual --- server/api/jellyfin.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/api/jellyfin.ts b/server/api/jellyfin.ts index a2fc4b224..3fe3bf65f 100644 --- a/server/api/jellyfin.ts +++ b/server/api/jellyfin.ts @@ -261,9 +261,7 @@ class JellyfinAPI { try { const contents = await this.axios.get(`/Shows/${seriesID}/Seasons`); - return contents.data.Items.filter( - (item: JellyfinLibraryItem) => item.LocationType !== 'Virtual' - ); + return contents.data.Items; } catch (e) { logger.error( `Something went wrong while getting the list of seasons from the Jellyfin server: ${e.message}`,