mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-23 04:03:05 +00:00
Merge pull request #208 from iwascraig/label_search
Add label to the list of acceptable filters for MovieSection and Show…
This commit is contained in:
commit
6a4f77727a
1 changed files with 4 additions and 4 deletions
|
@ -550,7 +550,7 @@ class MovieSection(LibrarySection):
|
||||||
Attributes:
|
Attributes:
|
||||||
ALLOWED_FILTERS (list<str>): List of allowed search filters. ('unwatched',
|
ALLOWED_FILTERS (list<str>): List of allowed search filters. ('unwatched',
|
||||||
'duplicate', 'year', 'decade', 'genre', 'contentRating', 'collection',
|
'duplicate', 'year', 'decade', 'genre', 'contentRating', 'collection',
|
||||||
'director', 'actor', 'country', 'studio', 'resolution', 'guid')
|
'director', 'actor', 'country', 'studio', 'resolution', 'guid', 'label')
|
||||||
ALLOWED_SORT (list<str>): List of allowed sorting keys. ('addedAt',
|
ALLOWED_SORT (list<str>): List of allowed sorting keys. ('addedAt',
|
||||||
'originallyAvailableAt', 'lastViewedAt', 'titleSort', 'rating',
|
'originallyAvailableAt', 'lastViewedAt', 'titleSort', 'rating',
|
||||||
'mediaHeight', 'duration')
|
'mediaHeight', 'duration')
|
||||||
|
@ -559,7 +559,7 @@ class MovieSection(LibrarySection):
|
||||||
"""
|
"""
|
||||||
ALLOWED_FILTERS = ('unwatched', 'duplicate', 'year', 'decade', 'genre', 'contentRating',
|
ALLOWED_FILTERS = ('unwatched', 'duplicate', 'year', 'decade', 'genre', 'contentRating',
|
||||||
'collection', 'director', 'actor', 'country', 'studio', 'resolution',
|
'collection', 'director', 'actor', 'country', 'studio', 'resolution',
|
||||||
'guid')
|
'guid', 'label')
|
||||||
ALLOWED_SORT = ('addedAt', 'originallyAvailableAt', 'lastViewedAt', 'titleSort', 'rating',
|
ALLOWED_SORT = ('addedAt', 'originallyAvailableAt', 'lastViewedAt', 'titleSort', 'rating',
|
||||||
'mediaHeight', 'duration')
|
'mediaHeight', 'duration')
|
||||||
TAG = 'Directory'
|
TAG = 'Directory'
|
||||||
|
@ -571,14 +571,14 @@ class ShowSection(LibrarySection):
|
||||||
|
|
||||||
Attributes:
|
Attributes:
|
||||||
ALLOWED_FILTERS (list<str>): List of allowed search filters. ('unwatched',
|
ALLOWED_FILTERS (list<str>): List of allowed search filters. ('unwatched',
|
||||||
'year', 'genre', 'contentRating', 'network', 'collection', 'guid')
|
'year', 'genre', 'contentRating', 'network', 'collection', 'guid', 'label')
|
||||||
ALLOWED_SORT (list<str>): List of allowed sorting keys. ('addedAt', 'lastViewedAt',
|
ALLOWED_SORT (list<str>): List of allowed sorting keys. ('addedAt', 'lastViewedAt',
|
||||||
'originallyAvailableAt', 'titleSort', 'rating', 'unwatched')
|
'originallyAvailableAt', 'titleSort', 'rating', 'unwatched')
|
||||||
TAG (str): 'Directory'
|
TAG (str): 'Directory'
|
||||||
TYPE (str): 'show'
|
TYPE (str): 'show'
|
||||||
"""
|
"""
|
||||||
ALLOWED_FILTERS = ('unwatched', 'year', 'genre', 'contentRating', 'network', 'collection',
|
ALLOWED_FILTERS = ('unwatched', 'year', 'genre', 'contentRating', 'network', 'collection',
|
||||||
'guid', 'duplicate')
|
'guid', 'duplicate', 'label')
|
||||||
ALLOWED_SORT = ('addedAt', 'lastViewedAt', 'originallyAvailableAt', 'titleSort',
|
ALLOWED_SORT = ('addedAt', 'lastViewedAt', 'originallyAvailableAt', 'titleSort',
|
||||||
'rating', 'unwatched')
|
'rating', 'unwatched')
|
||||||
TAG = 'Directory'
|
TAG = 'Directory'
|
||||||
|
|
Loading…
Reference in a new issue