aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorVitiko <[email protected]>2024-02-23 03:25:20 -0400
committerVitiko <[email protected]>2024-02-23 03:25:20 -0400
commitd9629df3afccaaf8ff14550769cc175313fce3c8 (patch)
treee5bb482491205e43246ca5f4a43eeae022c33f47 /tests
parent6c488063e73b401c60c71a5a4b57a045de2bdc36 (diff)
downloadbazarr-d9629df3afccaaf8ff14550769cc175313fce3c8.tar.gz
bazarr-d9629df3afccaaf8ff14550769cc175313fce3c8.zip
Subdivx Provider: major updates
Diffstat (limited to 'tests')
-rw-r--r--tests/subliminal_patch/test_subdivx.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/subliminal_patch/test_subdivx.py b/tests/subliminal_patch/test_subdivx.py
index 708b3715a..0b74fe37a 100644
--- a/tests/subliminal_patch/test_subdivx.py
+++ b/tests/subliminal_patch/test_subdivx.py
@@ -35,14 +35,6 @@ def test_list_subtitles_movie_with_one_difference_year(movies):
assert provider.list_subtitles(item, {Language("spa", "MX")})
-def test_handle_multi_page_search(episodes):
- with SubdivxSubtitlesProvider() as provider:
- for _ in provider._handle_multi_page_search(
- "Game Of Thrones", episodes["got_s03e10"]
- ):
- pass
-
-
@pytest.mark.parametrize(
"episode_key,expected", [("breaking_bad_s01e01", 15), ("inexistent", 0)]
)
@@ -106,7 +98,7 @@ def test_download_subtitle(movies):
"Dune",
"",
"",
- "https://www.subdivx.com/bajar.php?id=631101&u=9",
+ "https://www.subdivx.com/descargar.php?id=631101",
)
with SubdivxSubtitlesProvider() as provider:
provider.download_subtitle(subtitle)
@@ -124,7 +116,7 @@ def test_download_subtitle_episode_pack(episodes):
"Breaking Bad S01E01-07",
"Son los del torrent que vienen Formato / Dimensiones 624x352 / TamaƱo 351 MB -Incluye los Torrents-",
"",
- "https://www.subdivx.com/bajar.php?id=365610&u=7",
+ "https://www.subdivx.com/descargar.php?id=365610",
)
with SubdivxSubtitlesProvider() as provider:
provider.download_subtitle(subtitle)
@@ -168,7 +160,7 @@ def test_subtitle_matches(video):
"otras seguramente, gracias por sus comentarios, saludos."
),
"tolobich",
- "https://www.subdivx.com/bajar.php?id=635101&u=9",
+ "https://www.subdivx.com/descargar.php?id=635101",
)
matches = subtitle.get_matches(video)