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

pull/49/merge^2
davidaghaian@student.cccd.edu 6 years ago
parent 537ce67ea8
commit d7394bfd6c

@ -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", log.debug("Skipping: %s because it did not have a rating/lacked imdbID",
movie['movie']['title']) movie['movie']['title'])
continue 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'], log.info("Adding: %s (%d) | Genres: %s | Country: %s", movie['movie']['title'], movie['movie']['year'],
', '.join(movie['movie']['genres']), movie['movie']['country'].upper()) ', '.join(movie['movie']['genres']), movie['movie']['country'].upper())
# add movie to radarr # add movie to radarr

Loading…
Cancel
Save