Skip to content

Commit d8368f7

Browse files
authored
Add label to the list of acceptable filters for MovieSection and ShowSection
This allows searching using the sharing labels.
1 parent b385b76 commit d8368f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plexapi/library.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ class MovieSection(LibrarySection):
550550
Attributes:
551551
ALLOWED_FILTERS (list<str>): List of allowed search filters. ('unwatched',
552552
'duplicate', 'year', 'decade', 'genre', 'contentRating', 'collection',
553-
'director', 'actor', 'country', 'studio', 'resolution', 'guid')
553+
'director', 'actor', 'country', 'studio', 'resolution', 'guid', 'label')
554554
ALLOWED_SORT (list<str>): List of allowed sorting keys. ('addedAt',
555555
'originallyAvailableAt', 'lastViewedAt', 'titleSort', 'rating',
556556
'mediaHeight', 'duration')
@@ -559,7 +559,7 @@ class MovieSection(LibrarySection):
559559
"""
560560
ALLOWED_FILTERS = ('unwatched', 'duplicate', 'year', 'decade', 'genre', 'contentRating',
561561
'collection', 'director', 'actor', 'country', 'studio', 'resolution',
562-
'guid')
562+
'guid', 'label')
563563
ALLOWED_SORT = ('addedAt', 'originallyAvailableAt', 'lastViewedAt', 'titleSort', 'rating',
564564
'mediaHeight', 'duration')
565565
TAG = 'Directory'
@@ -571,14 +571,14 @@ class ShowSection(LibrarySection):
571571
572572
Attributes:
573573
ALLOWED_FILTERS (list<str>): List of allowed search filters. ('unwatched',
574-
'year', 'genre', 'contentRating', 'network', 'collection', 'guid')
574+
'year', 'genre', 'contentRating', 'network', 'collection', 'guid', 'label')
575575
ALLOWED_SORT (list<str>): List of allowed sorting keys. ('addedAt', 'lastViewedAt',
576576
'originallyAvailableAt', 'titleSort', 'rating', 'unwatched')
577577
TAG (str): 'Directory'
578578
TYPE (str): 'show'
579579
"""
580580
ALLOWED_FILTERS = ('unwatched', 'year', 'genre', 'contentRating', 'network', 'collection',
581-
'guid', 'duplicate')
581+
'guid', 'duplicate', 'label')
582582
ALLOWED_SORT = ('addedAt', 'lastViewedAt', 'originallyAvailableAt', 'titleSort',
583583
'rating', 'unwatched')
584584
TAG = 'Directory'

0 commit comments

Comments
 (0)