mirror of
https://github.com/ytdl-org/ytdl-nightly.git
synced 2025-06-05 21:49:13 +02:00
[viki] fix video API request(closes #27184)
This commit is contained in:
@@ -20,6 +20,7 @@ from ..utils import (
|
|||||||
parse_age_limit,
|
parse_age_limit,
|
||||||
parse_iso8601,
|
parse_iso8601,
|
||||||
sanitized_Request,
|
sanitized_Request,
|
||||||
|
std_headers,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -226,8 +227,10 @@ class VikiIE(VikiBaseIE):
|
|||||||
|
|
||||||
resp = self._download_json(
|
resp = self._download_json(
|
||||||
'https://www.viki.com/api/videos/' + video_id,
|
'https://www.viki.com/api/videos/' + video_id,
|
||||||
video_id, 'Downloading video JSON',
|
video_id, 'Downloading video JSON', headers={
|
||||||
headers={'x-viki-app-ver': '4.0.57'})
|
'x-client-user-agent': std_headers['User-Agent'],
|
||||||
|
'x-viki-app-ver': '4.0.57',
|
||||||
|
})
|
||||||
video = resp['video']
|
video = resp['video']
|
||||||
|
|
||||||
self._check_errors(video)
|
self._check_errors(video)
|
||||||
|
Reference in New Issue
Block a user