From a38bd1defac0fbbac6e7184631234108989bf7d7 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 9 Aug 2021 00:26:54 +0530 Subject: [PATCH] [viki] Print error message from API request Closes #651 --- yt_dlp/extractor/viki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/viki.py b/yt_dlp/extractor/viki.py index 6439c43eb..acb5ae550 100644 --- a/yt_dlp/extractor/viki.py +++ b/yt_dlp/extractor/viki.py @@ -73,7 +73,7 @@ def _call_api( data=json.dumps(data).encode('utf-8') if data else None, headers=({'x-viki-app-ver': self._APP_VERSION} if data else self._stream_headers(timestamp, sig) if query is None - else None)) or {} + else None), expected_status=400) or {} self._raise_error(resp.get('error'), fatal) return resp