projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29e7e07
)
[iqiyi] Give error message for assertion failures
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 6 Jun 2015 17:32:03 +0000
(
01:32
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 6 Jun 2015 17:32:03 +0000
(
01:32
+0800)
youtube_dl/extractor/iqiyi.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/iqiyi.py
b/youtube_dl/extractor/iqiyi.py
index 18a7587a257ae1f4fb2dfcb48978afec06ad113a..dc35c33804a624a17f74b43a0d74d485fa80ee80 100644
(file)
--- a/
youtube_dl/extractor/iqiyi.py
+++ b/
youtube_dl/extractor/iqiyi.py
@@
-171,7
+171,10
@@
class IqiyiIE(InfoExtractor):
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')