add _filter method to library.LibrarySection

referencing #209
This commit is contained in:
blacktwin 2020-06-22 15:44:20 -04:00
parent ea88be39a0
commit 6829bb2759

View file

@ -461,6 +461,11 @@ class LibrarySection(PlexObject):
key = '/hubs/sections/%s' % self.key
return self.fetchItems(key)
def _filters(self):
""" Returns a list of :class:`~plexapi.library.Filter` from this library section. """
key = '/library/sections/%s/filters' % self.key
return self.fetchItems(key, cls=Filter)
def agents(self):
""" Returns a list of available `:class:`~plexapi.media.Agent` for this library section.
"""