mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 19:53:17 +00:00
add _sorts method
This commit is contained in:
parent
e5d79c7518
commit
4a49ca97b0
1 changed files with 8 additions and 0 deletions
|
@ -466,6 +466,14 @@ class LibrarySection(PlexObject):
|
|||
key = '/library/sections/%s/filters' % self.key
|
||||
return self.fetchItems(key, cls=Filter)
|
||||
|
||||
def _sorts(self, mediaType=None):
|
||||
items = []
|
||||
for data in self.listChoices('sorts', mediaType):
|
||||
sort = Sort(server=self._server, data=data._data)
|
||||
sort._initpath = data._initpath
|
||||
items.append(sort)
|
||||
return items
|
||||
|
||||
def agents(self):
|
||||
""" Returns a list of available `:class:`~plexapi.media.Agent` for this library section.
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue