diff --git a/server/api/jellyfin.ts b/server/api/jellyfin.ts index 8718f2296..b126b55f1 100644 --- a/server/api/jellyfin.ts +++ b/server/api/jellyfin.ts @@ -179,8 +179,10 @@ class JellyfinAPI { (Item: any) => { return ( Item.Type === 'CollectionFolder' && - (Item.CollectionType === 'tvshows' || - Item.CollectionType === 'movies') + Item.CollectionType !== 'music' && + Item.CollectionType !== 'books' && + Item.CollectionType !== 'musicvideos' && + Item.CollectionType !== 'homevideos' ); } ).map((Item: any) => { @@ -205,7 +207,7 @@ class JellyfinAPI { public async getLibraryContents(id: string): Promise { try { const contents = await this.axios.get( - `/Users/${this.userId}/Items?SortBy=SortName&SortOrder=Ascending&IncludeItemTypes=Series,Movie&Recursive=true&StartIndex=0&ParentId=${id}` + `/Users/${this.userId}/Items?SortBy=SortName&SortOrder=Ascending&IncludeItemTypes=Series,Movie,Others&Recursive=true&StartIndex=0&ParentId=${id}` ); return contents.data.Items.filter(