From 636a3382d6e13f8e371613bd96ae944500337e95 Mon Sep 17 00:00:00 2001 From: joncrall Date: Wed, 13 Dec 2023 18:05:46 -0500 Subject: [PATCH] Allow fields query with get_media_folders --- jellyfin_apiclient_python/api.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jellyfin_apiclient_python/api.py b/jellyfin_apiclient_python/api.py index 288c050..92f4810 100644 --- a/jellyfin_apiclient_python/api.py +++ b/jellyfin_apiclient_python/api.py @@ -202,8 +202,11 @@ def delete_user(self, userID): def get_views(self): return self.users("/Views") - def get_media_folders(self): - return self.users("/Items") + def get_media_folders(self, fields=None): + params = None + if fields is not None: + params = {'fields': fields} + return self.users("/Items", params=params) def get_item(self, item_id): return self.users("/Items/%s" % item_id)