mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[iqiyi] Give error message for assertion failures
This commit is contained in:
parent
29e7e0781b
commit
aacda28b28
1 changed files with 4 additions and 1 deletions
|
@ -171,7 +171,10 @@ def _real_extract(self, url):
|
|||
enc_key = self.get_enc_key(swf_url, video_id)
|
||||
|
||||
raw_data = self.get_raw_data(tvid, video_id, enc_key, _uuid)
|
||||
assert raw_data['code'] == 'A000000'
|
||||
|
||||
if raw_data['code'] != 'A000000':
|
||||
raise ExtractorError('Unable to load data. Error code: ' + raw_data['code'])
|
||||
|
||||
if not raw_data['data']['vp']['tkl']:
|
||||
raise ExtractorError('No support iQiqy VIP video')
|
||||
|
||||
|
|
Loading…
Reference in a new issue