From d7394bfd6c4d70f991e8113d6321e07f3794c2a6 Mon Sep 17 00:00:00 2001 From: "davidaghaian@student.cccd.edu" Date: Sat, 4 Aug 2018 14:43:53 -0700 Subject: [PATCH] Movie should be added if a user did not specify a rating threshold OR if a threshold was specifier and the current movies rating exceeds it --- traktarr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traktarr.py b/traktarr.py index db02f16..378c6d2 100755 --- a/traktarr.py +++ b/traktarr.py @@ -528,7 +528,7 @@ def movies(list_type, add_limit=0, add_delay=2.5, sort='votes', rating=0, genre= log.debug("Skipping: %s because it did not have a rating/lacked imdbID", movie['movie']['title']) continue - if (not movieRating or movieRating >= rating): + if (not rating 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()) # add movie to radarr