summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorVitiko <[email protected]>2023-05-04 19:15:35 -0400
committerVitiko <[email protected]>2023-05-04 19:15:35 -0400
commite83f37d42ec3a8141ca6b5ca487d0ab200e59cb5 (patch)
treeed055f1b062639c53d2a5cadd680e4e67819d702 /tests
parent09f0a2783377e366a6a75d60ff57775abe244596 (diff)
downloadbazarr-e83f37d42ec3a8141ca6b5ca487d0ab200e59cb5.tar.gz
bazarr-e83f37d42ec3a8141ca6b5ca487d0ab200e59cb5.zip
SuperSubtitles provider: fix hungarian subtitles downloadsv1.2.2-beta.1
Diffstat (limited to 'tests')
-rw-r--r--tests/subliminal_patch/test_supersubtitles.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/subliminal_patch/test_supersubtitles.py b/tests/subliminal_patch/test_supersubtitles.py
index d02c017fe..ce483caad 100644
--- a/tests/subliminal_patch/test_supersubtitles.py
+++ b/tests/subliminal_patch/test_supersubtitles.py
@@ -107,6 +107,30 @@ def test_download_movie_subtitle(movies):
assert subtitle.is_valid()
+def test_download_movie_subtitle_hungarian(movies):
+ movie = movies["dune"]
+
+ subtitle = SuperSubtitlesSubtitle(
+ Language.fromalpha2("hu"),
+ "https://www.feliratok.eu//index.php?action=letolt&felirat=1681841063",
+ 1634579718,
+ "Foo",
+ 0,
+ 0,
+ "",
+ ["Foo"],
+ "",
+ "",
+ "",
+ asked_for_episode=None,
+ )
+ assert subtitle.get_matches(movie)
+
+ with SuperSubtitlesProvider() as provider:
+ provider.download_subtitle(subtitle)
+ assert subtitle.is_valid()
+
+
def test_subtitle_reprs(movies):
subtitle = SuperSubtitlesSubtitle(
Language.fromalpha2("en"),