mirror of https://github.com/morpheus65535/bazarr
Fix for #635.
This commit is contained in:
parent
474f9368fd
commit
983ffe2199
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue