We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 99003a1 + abac917 commit accb092Copy full SHA for accb092
plexapi/library.py
@@ -377,9 +377,17 @@ def get(self, title):
377
key = '/library/sections/%s/all' % self.key
378
return self.fetchItem(key, title__iexact=title)
379
380
- def all(self, **kwargs):
381
- """ Returns a list of media from this library section. """
382
- key = '/library/sections/%s/all' % self.key
+ def all(self, sort=None, **kwargs):
+ """ Returns a list of media from this library section.
+
383
+ Parameters:
384
+ sort (string): The sort string
385
+ """
386
+ sortStr = ''
387
+ if sort != None:
388
+ sortStr = '?sort=' + sort
389
390
+ key = '/library/sections/%s/all%s' % (self.key, sortStr)
391
return self.fetchItems(key, **kwargs)
392
393
def onDeck(self):
0 commit comments