projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7ea885
)
[viki] fix video API request(closes #27184)
author
Remita Amine
<remitamine@gmail.com>
Tue, 24 Nov 2020 22:25:03 +0000
(23:25 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Tue, 24 Nov 2020 22:25:03 +0000
(23:25 +0100)
youtube_dl/extractor/viki.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/viki.py
b/youtube_dl/extractor/viki.py
index a003b7af8b9e856499e3e26342d8301ef3c6c1e7..a311f21eff4b3a01bc242cdd7eea50474a802c77 100644
(file)
--- 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)