Skip to content

Commit

Permalink
fix(api): ignore Music,Books,Photos,MusicVideo libraries
Browse files Browse the repository at this point in the history
Ignores libraries other than tvshows,movies,others
  • Loading branch information
Fallenbagel committed Dec 16, 2022
1 parent ba82ece commit d9ca3c6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/api/jellyfin.ts
Expand Up @@ -177,7 +177,13 @@ class JellyfinAPI {

const response: JellyfinLibrary[] = account.data.Items.filter(
(Item: any) => {
return Item.Type === 'CollectionFolder';
return (
Item.Type === 'CollectionFolder' &&
Item.CollectionType !== 'music' &&
Item.CollectionType !== 'books' &&
Item.CollectionType !== 'musicvideos' &&
Item.CollectionType !== 'homevideos'
);
}
).map((Item: any) => {
return <JellyfinLibrary>{
Expand Down

0 comments on commit d9ca3c6

Please sign in to comment.