Skip to content

Commit

Permalink
Merge pull request #38 from Erotemic/fields-in-get-media-folders
Browse files Browse the repository at this point in the history
Allow fields query with get_media_folders
  • Loading branch information
iwalton3 authored Jan 21, 2024
2 parents c38166d + a395417 commit 5692966
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 @@ -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)
Expand Down

0 comments on commit 5692966

Please sign in to comment.