From 21f9a337a2e1ed530d7e19fc80d855ba22b1bb06 Mon Sep 17 00:00:00 2001 From: Allan Fernando Date: Thu, 4 Jun 2020 22:57:49 -0300 Subject: [PATCH] fix viki error 404 --- youtube_dl/extractor/viki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/viki.py b/youtube_dl/extractor/viki.py index b0dcdc0e6..952f227aa 100644 --- a/youtube_dl/extractor/viki.py +++ b/youtube_dl/extractor/viki.py @@ -56,7 +56,7 @@ class VikiBaseIE(InfoExtractor): def _call_api(self, path, video_id, note, timestamp=None, post_data=None): resp = self._download_json( - self._prepare_call(path, timestamp, post_data), video_id, note) + self._prepare_call(path, timestamp, post_data), video_id, note, headers={'x-viki-app-ver': self._APP_VERSION, 'x-viki-as-id': self._APP}) error = resp.get('error') if error: