Fix searching using MediaTag

This commit is contained in:
JonnyWong16 2021-03-11 12:23:08 -08:00
parent b35dc53602
commit ee161e46ed
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -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()}: