From 983ffe2199941923983a42aeae1c88b6c8204c32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Tue, 15 Oct 2019 11:03:47 -0400 Subject: [PATCH] Fix for #635. --- bazarr/get_subtitle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py index 95aee2b40..65fc00e84 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -1181,7 +1181,7 @@ def upgrade_subtitles(): notifications.write(msg='BAZARR All providers are throttled', queue='get_subtitle', duration='long') logging.info("BAZARR All providers are throttled") return - if episode['languages'] != "None": + if episode['languages']: desired_languages = ast.literal_eval(str(episode['languages'])) if episode['forced'] == "True": forced_languages = [l + ":forced" for l in desired_languages] @@ -1230,7 +1230,7 @@ def upgrade_subtitles(): notifications.write(msg='BAZARR All providers are throttled', queue='get_subtitle', duration='long') logging.info("BAZARR All providers are throttled") return - if movie['languages'] != "None": + if movie['languages']: desired_languages = ast.literal_eval(str(movie['languages'])) if movie['forced'] == "True": forced_languages = [l + ":forced" for l in desired_languages]