mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-26 13:40:22 +00:00
Fix searching using MediaTag
This commit is contained in:
parent
b35dc53602
commit
ee161e46ed
1 changed files with 1 additions and 0 deletions
|
@ -734,6 +734,7 @@ class LibrarySection(PlexObject):
|
|||
elif fieldType.type == 'string':
|
||||
value = str(value)
|
||||
elif fieldType.type in choiceTypes:
|
||||
value = str((value.id or value.tag) if isinstance(value, media.MediaTag) else value)
|
||||
matchValue = str(value).lower()
|
||||
for filterChoice in filterChoices:
|
||||
if matchValue in {filterChoice.key.lower(), filterChoice.title.lower()}:
|
||||
|
|
Loading…
Reference in a new issue