diff options
author | Tom-Oliver Heidel <github@tom-oliver.eu> | 2020-08-31 21:56:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-31 21:56:17 +0200 |
commit | a2f256c9e9a019e32b2033e8f3bd375e0498b541 (patch) | |
tree | 44195bf2b77591e22f54d4ba7acf49e25db531f6 /youtube_dl/extractor/viki.py | |
parent | 6b548c1145002a8312182679a9afb5af4298caba (diff) | |
parent | e7ff46dc8b48c9cd55516cf3532edbb7b3126dde (diff) | |
download | hypervideo-pre-a2f256c9e9a019e32b2033e8f3bd375e0498b541.tar.lz hypervideo-pre-a2f256c9e9a019e32b2033e8f3bd375e0498b541.tar.xz hypervideo-pre-a2f256c9e9a019e32b2033e8f3bd375e0498b541.zip |
Merge pull request #1 from blackjack4494/viki-the_second
Viki the second
Diffstat (limited to 'youtube_dl/extractor/viki.py')
-rw-r--r-- | youtube_dl/extractor/viki.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/viki.py b/youtube_dl/extractor/viki.py index b0dcdc0e6..9e4171237 100644 --- a/youtube_dl/extractor/viki.py +++ b/youtube_dl/extractor/viki.py @@ -56,14 +56,14 @@ 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': '2.2.5.1428709186'}, expected_status=[200, 400, 404]) error = resp.get('error') if error: if error == 'invalid timestamp': resp = self._download_json( self._prepare_call(path, int(resp['current_timestamp']), post_data), - video_id, '%s (retry)' % note) + video_id, '%s (retry)' % note, headers={'x-viki-app-ver': '2.2.5.1428709186'}, expected_status=[200, 400, 404]) error = resp.get('error') if error: self._raise_error(resp['error']) |