This commit is contained in:
Louis Vézina 2019-10-15 11:03:47 -04:00
parent 474f9368fd
commit 983ffe2199
1 changed files with 2 additions and 2 deletions

View File

@ -1181,7 +1181,7 @@ def upgrade_subtitles():
notifications.write(msg='BAZARR All providers are throttled', queue='get_subtitle', duration='long') notifications.write(msg='BAZARR All providers are throttled', queue='get_subtitle', duration='long')
logging.info("BAZARR All providers are throttled") logging.info("BAZARR All providers are throttled")
return return
if episode['languages'] != "None": if episode['languages']:
desired_languages = ast.literal_eval(str(episode['languages'])) desired_languages = ast.literal_eval(str(episode['languages']))
if episode['forced'] == "True": if episode['forced'] == "True":
forced_languages = [l + ":forced" for l in desired_languages] 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') notifications.write(msg='BAZARR All providers are throttled', queue='get_subtitle', duration='long')
logging.info("BAZARR All providers are throttled") logging.info("BAZARR All providers are throttled")
return return
if movie['languages'] != "None": if movie['languages']:
desired_languages = ast.literal_eval(str(movie['languages'])) desired_languages = ast.literal_eval(str(movie['languages']))
if movie['forced'] == "True": if movie['forced'] == "True":
forced_languages = [l + ":forced" for l in desired_languages] forced_languages = [l + ":forced" for l in desired_languages]