[71] #870 fix for NoneType Error

pull/949/head
meisnate12 3 years ago
parent e35feb45ef
commit 7e528bf7d0

@ -1 +1 @@
1.17.0-develop70 1.17.0-develop71

@ -1284,9 +1284,10 @@ class Plex(Library):
if attr and attr not in values: if attr and attr not in values:
values.append(attr) values.append(attr)
elif filter_attr in ["filepath", "folder"]: elif filter_attr in ["filepath", "folder"]:
values = [loc for loc in item.locations] values = [loc for loc in item.locations if loc]
else: else:
values = [getattr(item, filter_actual)] test_value = getattr(item, filter_actual)
values = [test_value] if test_value else []
if util.is_string_filter(values, modifier, filter_data): if util.is_string_filter(values, modifier, filter_data):
return False return False
elif filter_attr in builder.boolean_filters: elif filter_attr in builder.boolean_filters:

Loading…
Cancel
Save