Skip to content

Commit

Permalink
fix(jellyfin): sync errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sambartik authored Jun 5, 2022
1 parent 6458c05 commit d1dbd6e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions server/api/jellyfin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,7 @@ class JellyfinAPI {
`/Users/${this.userId}/Items/Latest?Limit=12&ParentId=${id}`
);

return contents.data.filter(
(item: JellyfinLibraryItem) => item.LocationType !== 'Virtual'
);
return contents.data;
} catch (e) {
logger.error(
`Something went wrong while getting library content from the Jellyfin server: ${e.message}`,
Expand All @@ -242,9 +240,7 @@ class JellyfinAPI {
`/Users/${this.userId}/Items/${id}`
);

return contents.data.filter(
(item: JellyfinLibraryItem) => item.LocationType !== 'Virtual'
);
return contents.data;
} catch (e) {
logger.error(
`Something went wrong while getting library content from the Jellyfin server: ${e.message}`,
Expand Down

0 comments on commit d1dbd6e

Please sign in to comment.