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.
1 parent e5794e4 commit a28cbdcCopy full SHA for a28cbdc
plexapi/library.py
@@ -378,13 +378,13 @@ def get(self, title):
378
return self.fetchItem(key, title__iexact=title)
379
380
def all(self, sort=None, **kwargs):
381
- """ Returns a list of media from this library section.
382
-
+ """ Returns a list of media from this library section.
+
383
Parameters:
384
sort (string): The sort string
385
"""
386
sortStr = ''
387
- if sort != None:
+ if sort is not None:
388
sortStr = '?sort=' + sort
389
390
key = '/library/sections/%s/all%s' % (self.key, sortStr)
0 commit comments