Fixed pt-BR issue with subdl provider.

pull/2575/head
morpheus65535 4 months ago
parent 5886c20c9c
commit a15b8d5602

@ -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}')

Loading…
Cancel
Save