mirror of
https://github.com/pkkid/python-plexapi
synced 2025-02-18 05:48:26 +00:00
add tag class for media
This commit is contained in:
parent
e6548649c8
commit
65bb149d7d
1 changed files with 19 additions and 0 deletions
|
@ -419,6 +419,25 @@ class Label(MediaTag):
|
||||||
FILTER = 'label'
|
FILTER = 'label'
|
||||||
|
|
||||||
|
|
||||||
|
@utils.registerPlexObject
|
||||||
|
class Tag(MediaTag):
|
||||||
|
""" Represents a single tag media tag.
|
||||||
|
|
||||||
|
Attributes:
|
||||||
|
TAG (str): 'tag'
|
||||||
|
FILTER (str): 'tag'
|
||||||
|
"""
|
||||||
|
TAG = 'Tag'
|
||||||
|
FILTER = 'tag'
|
||||||
|
|
||||||
|
def _loadData(self, data):
|
||||||
|
self._data = data
|
||||||
|
self.id = cast(int, data.attrib.get('id', 0))
|
||||||
|
self.filter = data.attrib.get('filter')
|
||||||
|
self.tag = data.attrib.get('tag')
|
||||||
|
self.title = self.tag
|
||||||
|
|
||||||
|
|
||||||
@utils.registerPlexObject
|
@utils.registerPlexObject
|
||||||
class Country(MediaTag):
|
class Country(MediaTag):
|
||||||
""" Represents a single Country media tag.
|
""" Represents a single Country media tag.
|
||||||
|
|
Loading…
Add table
Reference in a new issue