From 7dfe38001e9fbf8597aa334845064be445457f1b Mon Sep 17 00:00:00 2001 From: Aiden Vigue Date: Fri, 19 Feb 2021 17:17:10 +0000 Subject: [PATCH] fix(backend): fix Jellyfin scan for recently added items --- server/api/jellyfin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/api/jellyfin.ts b/server/api/jellyfin.ts index d8c493d0c..103fdcfbc 100644 --- a/server/api/jellyfin.ts +++ b/server/api/jellyfin.ts @@ -199,10 +199,10 @@ class JellyfinAPI { public async getRecentlyAdded(id: string): Promise { try { const contents = await this.axios.get( - `/Users/${this.userId}/Items/Latest?Limit=50&ParentId=${id}` + `/Users/${this.userId}/Items/Latest?Limit=12&ParentId=${id}` ); - return contents.data.Items; + return contents.data; } catch (e) { logger.error( `Something went wrong while getting library content from the Jellyfin server: ${e.message}`,