summaryrefslogtreecommitdiffhomepage
path: root/custom_libs
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2024-07-09 09:01:39 -0400
committermorpheus65535 <[email protected]>2024-07-09 09:01:39 -0400
commita15b8d560252a953999976343b7665c533570365 (patch)
tree424dc468b56ea6ea4156fc01561f57a877ee7ed7 /custom_libs
parent5886c20c9c7929bf46836a99c2d9d4eb834638bd (diff)
downloadbazarr-a15b8d560252a953999976343b7665c533570365.tar.gz
bazarr-a15b8d560252a953999976343b7665c533570365.zip
Fixed pt-BR issue with subdl provider.
Diffstat (limited to 'custom_libs')
-rw-r--r--custom_libs/subliminal_patch/providers/subdl.py3
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}')