summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--custom_libs/subliminal_patch/providers/opensubtitlescom.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/custom_libs/subliminal_patch/providers/opensubtitlescom.py b/custom_libs/subliminal_patch/providers/opensubtitlescom.py
index 14289919a..0f0c2eaff 100644
--- a/custom_libs/subliminal_patch/providers/opensubtitlescom.py
+++ b/custom_libs/subliminal_patch/providers/opensubtitlescom.py
@@ -54,6 +54,7 @@ def fix_movie_naming(title):
custom_languages = {
'pt': 'pt-PT',
'zh': 'zh-CN',
+ 'es-MX': 'ea',
}
@@ -156,9 +157,10 @@ class OpenSubtitlesComProvider(ProviderRetryMixin, Provider):
"""OpenSubtitlesCom Provider"""
server_hostname = 'api.opensubtitles.com'
- languages = {Language.fromopensubtitles(lang) for lang in language_converters['szopensubtitles'].codes}
+ languages = ({Language.fromietf("es-MX")} |
+ {Language.fromopensubtitles(lang) for lang in language_converters['szopensubtitles'].codes})
languages.update(set(Language.rebuild(lang, forced=True) for lang in languages))
- languages.update(set(Language.rebuild(l, hi=True) for l in languages))
+ languages.update(set(Language.rebuild(lang, hi=True) for lang in languages))
video_types = (Episode, Movie)