diff --git a/jellyfin_apiclient_python/api.py b/jellyfin_apiclient_python/api.py index f0733e4..a0a06e8 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)