mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-01 04:26:13 +00:00
Fixed HI subtitles wrongly ignored when normal or HI is selected in languages profile.
This commit is contained in:
parent
f276b70f5e
commit
9bd2ab514e
1 changed files with 4 additions and 4 deletions
|
@ -473,7 +473,7 @@ class SZProviderPool(ProviderPool):
|
|||
|
||||
for s in subtitles:
|
||||
# get the matches
|
||||
if s.language not in languages:
|
||||
if s.language.basename not in [x.basename for x in languages]:
|
||||
logger.debug("%r: Skipping, language not searched for", s)
|
||||
continue
|
||||
|
||||
|
@ -502,12 +502,12 @@ class SZProviderPool(ProviderPool):
|
|||
break
|
||||
|
||||
# stop when all languages are downloaded
|
||||
if set(s.language for s in downloaded_subtitles) == languages:
|
||||
if set(s.language.basename for s in downloaded_subtitles) == languages:
|
||||
logger.debug('All languages downloaded')
|
||||
break
|
||||
|
||||
# check downloaded languages
|
||||
if subtitle.language in set(s.language for s in downloaded_subtitles):
|
||||
if subtitle.language in set(s.language.basename for s in downloaded_subtitles):
|
||||
logger.debug('%r: Skipping subtitle: already downloaded', subtitle.language)
|
||||
continue
|
||||
|
||||
|
@ -1127,7 +1127,7 @@ def save_subtitles(file_path, subtitles, single=False, directory=None, chmod=Non
|
|||
continue
|
||||
|
||||
# check language
|
||||
if subtitle.language in set(s.language for s in saved_subtitles):
|
||||
if subtitle.language in set(s.language.basename for s in saved_subtitles):
|
||||
logger.debug('Skipping subtitle %r: language already saved', subtitle)
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in a new issue