Merge pull request #74 from l3uddz/fix/blacklist_ids_not_matching

Remap blacklisted_ids to integers to fix matching issues.
pull/78/head
desimaniac 6 years ago committed by GitHub
commit 1590f553c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -92,6 +92,7 @@ def blacklisted_show_runtime(show, lowest_runtime):
def blacklisted_show_id(show, blacklisted_ids):
blacklisted = False
blacklisted_ids = sorted(map(int, blacklisted_ids))
try:
if not show['show']['ids']['tvdb'] or not isinstance(show['show']['ids']['tvdb'], int):
log.debug("%s was blacklisted because it had an invalid tvdb id", show['show']['title'])
@ -221,6 +222,7 @@ def blacklisted_movie_runtime(movie, lowest_runtime):
def blacklisted_movie_id(movie, blacklisted_ids):
blacklisted = False
blacklisted_ids = sorted(map(int, blacklisted_ids))
try:
if not movie['movie']['ids']['tmdb'] or not isinstance(movie['movie']['ids']['tmdb'], int):
log.debug("%s was blacklisted because it had an invalid tmdb id", movie['movie']['title'])

Loading…
Cancel
Save