diff options
author | morpheus65535 <[email protected]> | 2024-07-09 09:01:39 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2024-07-09 09:01:39 -0400 |
commit | a15b8d560252a953999976343b7665c533570365 (patch) | |
tree | 424dc468b56ea6ea4156fc01561f57a877ee7ed7 | |
parent | 5886c20c9c7929bf46836a99c2d9d4eb834638bd (diff) | |
download | bazarr-a15b8d560252a953999976343b7665c533570365.tar.gz bazarr-a15b8d560252a953999976343b7665c533570365.zip |
Fixed pt-BR issue with subdl provider.
-rw-r--r-- | custom_libs/subliminal_patch/providers/subdl.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/custom_libs/subliminal_patch/providers/subdl.py b/custom_libs/subliminal_patch/providers/subdl.py index bf4dc79d2..3c2d2ce7d 100644 --- a/custom_libs/subliminal_patch/providers/subdl.py +++ b/custom_libs/subliminal_patch/providers/subdl.py @@ -130,7 +130,8 @@ class SubdlProvider(ProviderRetryMixin, Provider): imdb_id = self.video.imdb_id # be sure to remove duplicates using list(set()) - langs_list = sorted(list(set([lang.basename.upper() for lang in languages]))) + langs_list = sorted(list(set([language_converters['subdl'].to_subdl[(lang.alpha3, lang.country, lang.script)] + for lang in languages]))) langs = ','.join(langs_list) logger.debug(f'Searching for those languages: {langs}') |