From b08c7b7dc1c53a5e6a006b946fb7b6cd2c5fc0b5 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 31 Mar 2021 21:02:51 -0400 Subject: [PATCH] ignore None attributesin filters --- modules/plex.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/plex.py b/modules/plex.py index 5357e86a..7156cc4e 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -300,9 +300,7 @@ class PlexAPI: attr = tmdb_item.vote_count else: attr = getattr(current, method_name) / 60000 if method_name == "duration" else getattr(current, method_name) - if attr is None: - attr = 0 - if (modifier == ".lte" and attr > filter_data) or (modifier == ".gte" and attr < filter_data): + if attr is None or (modifier == ".lte" and attr > filter_data) or (modifier == ".gte" and attr < filter_data): match = False break else: