From 825429f3a07f0d126a78863f23b31d11bf6bc9fc Mon Sep 17 00:00:00 2001 From: l3uddz Date: Sun, 17 Mar 2019 10:46:37 +0000 Subject: [PATCH] Traktarr: Should fix the movierating is None bug --- traktarr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traktarr.py b/traktarr.py index 7dc32bd..d24000a 100755 --- a/traktarr.py +++ b/traktarr.py @@ -529,7 +529,7 @@ def movies(list_type, add_limit=0, add_delay=2.5, sort='votes', rating=None, gen log.debug("Skipping: %s because it did not have a rating/lacked imdbID", movie['movie']['title']) continue - if rating is None or movieRating >= rating: + if (rating is None or movieRating is None) or movieRating >= rating: log.info("Adding: %s (%d) | Genres: %s | Country: %s", movie['movie']['title'], movie['movie']['year'], ', '.join(movie['movie']['genres']), movie['movie']['country'].upper())