From a8bd53b75766f376b5c4706cc176c3c9b2abc302 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Thu, 24 Aug 2023 18:04:01 -0700 Subject: [PATCH] Adjust jellyfin playlist fetch --- .../api/jellyfin/jellyfin-controller.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/renderer/api/jellyfin/jellyfin-controller.ts b/src/renderer/api/jellyfin/jellyfin-controller.ts index 9bef6ed8..860db0f4 100644 --- a/src/renderer/api/jellyfin/jellyfin-controller.ts +++ b/src/renderer/api/jellyfin/jellyfin-controller.ts @@ -529,6 +529,20 @@ const getPlaylistList = async (args: PlaylistListArgs): Promise folder.CollectionType === jfType._enum.collection.PLAYLISTS, + )?.[0]; + const res = await jfApiClient(apiClientProps).getPlaylistList({ params: { userId: apiClientProps.server?.userId, @@ -537,8 +551,7 @@ const getPlaylistList = async (args: PlaylistListArgs): Promise