From ab0dace8d5f71af89df0cddbad1e8c0998a63535 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Sun, 28 Mar 2021 15:24:02 -0400 Subject: [PATCH] fix for None rating --- modules/plex.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/plex.py b/modules/plex.py index bc482813..ae7e7032 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -210,6 +210,8 @@ 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): match = False break