diff options
author | pukkandan <pukkandan@gmail.com> | 2020-11-26 22:57:34 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2020-11-26 22:57:34 +0530 |
commit | 38d7028407b5db50e4d3c712d52b294ec1100c1f (patch) | |
tree | 637bc10be43f452139932a73d63b0bee0b0c9df8 /youtube_dlc/extractor/viki.py | |
parent | 02ced43cbf763260ac35d4c92fa6fd5f89f69f72 (diff) |
Updated to release 2020.11.26
Diffstat (limited to 'youtube_dlc/extractor/viki.py')
-rw-r--r-- | youtube_dlc/extractor/viki.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dlc/extractor/viki.py b/youtube_dlc/extractor/viki.py index 2e3794344..09da4338d 100644 --- a/youtube_dlc/extractor/viki.py +++ b/youtube_dlc/extractor/viki.py @@ -21,6 +21,7 @@ from ..utils import ( parse_age_limit, parse_iso8601, sanitized_Request, + std_headers, ) @@ -227,8 +228,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) |