diff options
author | Remita Amine <remitamine@gmail.com> | 2020-11-24 23:25:03 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2020-11-24 23:25:03 +0100 |
commit | 97c5be383c78da84efdb6ea9334ee95b198a2f1d (patch) | |
tree | 6b2a6452667d6e6faaca7268e8eae24bd41df942 | |
parent | a7ea88537a8bc8843636f21eb9bd9fa04d5060c5 (diff) |
[viki] fix video API request(closes #27184)
-rw-r--r-- | youtube_dl/extractor/viki.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/viki.py b/youtube_dl/extractor/viki.py index a003b7af8..a311f21ef 100644 --- a/youtube_dl/extractor/viki.py +++ b/youtube_dl/extractor/viki.py @@ -20,6 +20,7 @@ from ..utils import ( parse_age_limit, parse_iso8601, sanitized_Request, + std_headers, ) @@ -226,8 +227,10 @@ class VikiIE(VikiBaseIE): resp = self._download_json( 'https://www.viki.com/api/videos/' + video_id, - video_id, 'Downloading video JSON', - headers={'x-viki-app-ver': '4.0.57'}) + video_id, 'Downloading video JSON', headers={ + 'x-client-user-agent': std_headers['User-Agent'], + 'x-viki-app-ver': '4.0.57', + }) video = resp['video'] self._check_errors(video) |