fix(api): ignore Music,Books,Photos,MusicVideo libraries
Ignores libraries other than tvshows,movies,others
This commit is contained in:
@@ -177,7 +177,13 @@ class JellyfinAPI {
|
|||||||
|
|
||||||
const response: JellyfinLibrary[] = account.data.Items.filter(
|
const response: JellyfinLibrary[] = account.data.Items.filter(
|
||||||
(Item: any) => {
|
(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) => {
|
).map((Item: any) => {
|
||||||
return <JellyfinLibrary>{
|
return <JellyfinLibrary>{
|
||||||
|
|||||||
Reference in New Issue
Block a user