1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-03-03 18:15:50 +00:00

Fix for forced subtitles not being automatically downloaded anymore.

This commit is contained in:
morpheus65535 2020-11-11 08:57:34 -05:00
parent 776e560752
commit e2e541252d

View file

@ -352,7 +352,7 @@ class SZProviderPool(ProviderPool):
for s in subtitles:
# get the matches
if s.language.basename not in languages:
if s.language not in languages:
logger.debug("%r: Skipping, language not searched for", s)
continue
@ -381,12 +381,12 @@ class SZProviderPool(ProviderPool):
break
# stop when all languages are downloaded
if set(s.language.basename for s in downloaded_subtitles) == languages:
if set(s.language for s in downloaded_subtitles) == languages:
logger.debug('All languages downloaded')
break
# check downloaded languages
if subtitle.language in set(s.language.basename for s in downloaded_subtitles):
if subtitle.language in set(s.language for s in downloaded_subtitles):
logger.debug('%r: Skipping subtitle: already downloaded', subtitle.language)
continue
@ -868,7 +868,7 @@ def save_subtitles(file_path, subtitles, single=False, directory=None, chmod=Non
continue
# check language
if subtitle.language in set(s.language.basename for s in saved_subtitles):
if subtitle.language in set(s.language for s in saved_subtitles):
logger.debug('Skipping subtitle %r: language already saved', subtitle)
continue