summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--libs/subliminal_patch/providers/gestdown.py2
-rw-r--r--tests/subliminal_patch/test_gestdown.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/libs/subliminal_patch/providers/gestdown.py b/libs/subliminal_patch/providers/gestdown.py
index eed1e1e6a..386d8f404 100644
--- a/libs/subliminal_patch/providers/gestdown.py
+++ b/libs/subliminal_patch/providers/gestdown.py
@@ -84,8 +84,6 @@ class GestdownProvider(Provider):
self._session.close()
def _subtitles_search(self, video, language: Language):
-
- logger.debug("Post data: %s", json_data)
lang = self._converter.convert(language.alpha3)
response = self._session.get(f"{_BASE_URL}/subtitles/find/{lang}/{video.series}/{video.season}/{video.episode}")
diff --git a/tests/subliminal_patch/test_gestdown.py b/tests/subliminal_patch/test_gestdown.py
index 100ca8689..cc79d1475 100644
--- a/tests/subliminal_patch/test_gestdown.py
+++ b/tests/subliminal_patch/test_gestdown.py
@@ -78,7 +78,9 @@ def test_subtitle_download(subtitle):
def test_list_subtitles_423(episodes, requests_mock, mocker):
mocker.patch("time.sleep")
- requests_mock.post(f"{_BASE_URL}/subtitles/search", status_code=423)
+ requests_mock.get(
+ f"{_BASE_URL}/subtitles/find/English/Breaking%20Bad/1/1", status_code=423
+ )
with GestdownProvider() as provider:
assert not provider.list_subtitles(