Fix for regex filter when language is unknown

Fix for when with the regex filter, the language is unknown.
It will check now first if its a string.
pull/1928/head
jz1 9 months ago committed by GitHub
parent a92ee5de67
commit 4eff61502f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1822,8 +1822,9 @@ class Plex(Library):
has_match = False
for reg in filter_data:
for name in attrs:
if re.compile(reg).search(name):
has_match = True
if isinstance(name, str)::
if re.compile(reg).search(name):
has_match = True
if has_match is False:
return False
elif (not list(set(filter_data) & set(attrs)) and modifier == "") \

Loading…
Cancel
Save