summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2022-11-25 22:21:01 -0500
committermorpheus65535 <[email protected]>2022-11-25 22:21:01 -0500
commit29a4842e2d6f1623600f439d992a3194053c3b9f (patch)
tree686b04f2c6a52ea3133378253de3676e9afb02ba /libs
parent4ada83f747162ced6bb3c3e1dd0c0390e13a288e (diff)
downloadbazarr-29a4842e2d6f1623600f439d992a3194053c3b9f.tar.gz
bazarr-29a4842e2d6f1623600f439d992a3194053c3b9f.zip
Fixed issue when explicitly requested HI subtitles from opensubtitles.com, subtitrarinoi or titrari.
Diffstat (limited to 'libs')
-rw-r--r--libs/subliminal_patch/providers/opensubtitlescom.py1
-rw-r--r--libs/subliminal_patch/providers/subtitrarinoi.py1
-rw-r--r--libs/subliminal_patch/providers/titrari.py1
3 files changed, 3 insertions, 0 deletions
diff --git a/libs/subliminal_patch/providers/opensubtitlescom.py b/libs/subliminal_patch/providers/opensubtitlescom.py
index a305f2f53..c9ca5831f 100644
--- a/libs/subliminal_patch/providers/opensubtitlescom.py
+++ b/libs/subliminal_patch/providers/opensubtitlescom.py
@@ -129,6 +129,7 @@ class OpenSubtitlesComProvider(ProviderRetryMixin, Provider):
languages = {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))
video_types = (Episode, Movie)
diff --git a/libs/subliminal_patch/providers/subtitrarinoi.py b/libs/subliminal_patch/providers/subtitrarinoi.py
index 4223a0b89..0593ce055 100644
--- a/libs/subliminal_patch/providers/subtitrarinoi.py
+++ b/libs/subliminal_patch/providers/subtitrarinoi.py
@@ -119,6 +119,7 @@ class SubtitrarinoiProvider(Provider, ProviderSubtitleArchiveMixin):
subtitle_class = SubtitrarinoiSubtitle
languages = {Language(lang) for lang in ['ron']}
languages.update(set(Language.rebuild(lang, forced=True) for lang in languages))
+ languages.update(set(Language.rebuild(lang, hi=True) for lang in languages))
video_types = (Episode, Movie)
server_url = 'https://www.subtitrari-noi.ro/'
api_url = server_url + 'paginare_filme.php'
diff --git a/libs/subliminal_patch/providers/titrari.py b/libs/subliminal_patch/providers/titrari.py
index 5e8a001f0..1735d5f04 100644
--- a/libs/subliminal_patch/providers/titrari.py
+++ b/libs/subliminal_patch/providers/titrari.py
@@ -122,6 +122,7 @@ class TitrariProvider(Provider, ProviderSubtitleArchiveMixin):
subtitle_class = TitrariSubtitle
languages = {Language(lang) for lang in ['ron', 'eng']}
languages.update(set(Language.rebuild(lang, forced=True) for lang in languages))
+ languages.update(set(Language.rebuild(lang, hi=True) for lang in languages))
video_types = (Episode, Movie)
api_url = 'https://www.titrari.ro/'
query_advanced_search = 'cautarepreaavansata'