mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-22 02:01:50 +00:00
parent
416930d450
commit
8790249c68
1 changed files with 4 additions and 1 deletions
|
@ -368,7 +368,10 @@ class IqiyiIE(InfoExtractor):
|
||||||
auth_req, video_id,
|
auth_req, video_id,
|
||||||
note='Downloading video authentication JSON',
|
note='Downloading video authentication JSON',
|
||||||
errnote='Unable to download video authentication JSON')
|
errnote='Unable to download video authentication JSON')
|
||||||
if auth_result['code'] == 'Q00506': # requires a VIP account
|
|
||||||
|
if auth_result['code'] == 'Q00505': # No preview available (不允许试看鉴权失败)
|
||||||
|
raise ExtractorError('This video requires a VIP account', expected=True)
|
||||||
|
if auth_result['code'] == 'Q00506': # End of preview time (试看结束鉴权失败)
|
||||||
if do_report_warning:
|
if do_report_warning:
|
||||||
self.report_warning('Needs a VIP account for full video')
|
self.report_warning('Needs a VIP account for full video')
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue