mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-26 21:50:20 +00:00
parent
c988f393a7
commit
ea88be39a0
1 changed files with 19 additions and 0 deletions
|
@ -1066,6 +1066,25 @@ class FilterChoice(PlexObject):
|
||||||
self.type = data.attrib.get('type')
|
self.type = data.attrib.get('type')
|
||||||
|
|
||||||
|
|
||||||
|
class Filter(PlexObject):
|
||||||
|
""" Represents a single Filter.
|
||||||
|
|
||||||
|
Attributes:
|
||||||
|
TAG (str): 'Directory'
|
||||||
|
TYPE (str): 'filter'
|
||||||
|
"""
|
||||||
|
TAG = 'Directory'
|
||||||
|
TYPE = 'filter'
|
||||||
|
|
||||||
|
def _loadData(self, data):
|
||||||
|
self._data = data
|
||||||
|
self.filter = data.attrib.get('filter')
|
||||||
|
self.filterType = data.attrib.get('filterType')
|
||||||
|
self.key = data.attrib.get('key')
|
||||||
|
self.title = data.attrib.get('title')
|
||||||
|
self.type = data.attrib.get('type')
|
||||||
|
|
||||||
|
|
||||||
@utils.registerPlexObject
|
@utils.registerPlexObject
|
||||||
class Hub(PlexObject):
|
class Hub(PlexObject):
|
||||||
""" Represents a single Hub (or category) in the PlexServer search.
|
""" Represents a single Hub (or category) in the PlexServer search.
|
||||||
|
|
Loading…
Reference in a new issue