Skip to content

Commit

Permalink
Allow fields query with get_media_folders
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Dec 13, 2023
1 parent 72189df commit a395417
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jellyfin_apiclient_python/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,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)
Expand Down

0 comments on commit a395417

Please sign in to comment.