Skip to content

Commit

Permalink
fix(jellyfin.ts): process virtual seasons if they have non virtual ep…
Browse files Browse the repository at this point in the history
…isodes (#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
  • Loading branch information
InvalidArgumentException authored Feb 1, 2024
1 parent 4f81788 commit db84f65
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/api/jellyfin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,7 @@ class JellyfinAPI {
try {
const contents = await this.axios.get<any>(`/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}`,
Expand Down

0 comments on commit db84f65

Please sign in to comment.