no log: fix gestdown provider logger

pull/1962/head v1.1.2-beta.11
vitiko98 2 years ago
parent 5413f31b41
commit 571f9a195c

@ -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}")

@ -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(

Loading…
Cancel
Save