fix(api): ignore Music,Books,Photos,MusicVideo libraries

Ignores libraries other than tvshows,movies,others
This commit is contained in:
Fallenbagel
2022-12-16 20:19:03 +05:00
parent ba82ecec5c
commit d9ca3c6e52

View File

@@ -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>{