From 4f4bec4d6dcfb4d4feb37b68a84ddb8c5ce7210d Mon Sep 17 00:00:00 2001 From: desimaniac <5501908+desimaniac@users.noreply.github.com> Date: Tue, 7 May 2019 13:15:21 -0500 Subject: [PATCH] Remap blacklisted_ids to integers to fix matching issues. --- helpers/trakt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helpers/trakt.py b/helpers/trakt.py index 289b4dd..5083f94 100644 --- a/helpers/trakt.py +++ b/helpers/trakt.py @@ -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'])