]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/viki.py
[extractor] Simplify search extractors
[yt-dlp.git] / yt_dlp / extractor / viki.py
index 6439c43ebd2103c585baa5485a17e644ceed3e1a..acb5ae550c8bd088bcb7a608d0710f56dcc1ec1a 100644 (file)
@@ -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