Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site Support Request could not download from iqiyi An extractor error has occurred. (caused by KeyError(u'data',)) #9071

Closed
wanghaisheng opened this issue Apr 3, 2016 · 1 comment

Comments

@wanghaisheng
Copy link

@wanghaisheng wanghaisheng commented Apr 3, 2016

  ~ youtube-dl -v   http://www.iqiyi.com/v_19rrl0274k.html\?vfm\=2008_aldbd\&fv\=p_02_01\&bvfm\=videolocal
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.iqiyi.com/v_19rrl0274k.html?vfm=2008_aldbd&fv=p_02_01&bvfm=videolocal']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.04.01
[debug] Python version 2.7.10 - Darwin-15.3.0-x86_64-i386-64bit
[debug] exe versions: avconv 11.4, avprobe 11.4, ffmpeg 3.0, ffprobe 3.0
[debug] Proxy map: {}
[iqiyi] temp_id: download video page
[iqiyi] b292967951caee85a84be0cdae7ddffa: Downloading JSON metadata
[iqiyi] b292967951caee85a84be0cdae7ddffa: Downloading video authentication JSON
ERROR: An extractor error has occurred. (caused by KeyError(u'data',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 323, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/iqiyi.py", line 569, in _real_extract
    data, video_id, _uuid, tvid)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/iqiyi.py", line 452, in construct_video_urls
    't': auth_result['data']['t'],
KeyError: u'data'
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 669, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 329, in extract
    raise ExtractorError('An extractor error has occurred.', cause=e)
ExtractorError: An extractor error has occurred. (caused by KeyError(u'data',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

➜  ~ 

@wanghaisheng wanghaisheng changed the title could not download from iqiyi An extractor error has occurred. (caused by KeyError(u'data',)) Site Support Request could not download from iqiyi An extractor error has occurred. (caused by KeyError(u'data',)) Apr 3, 2016
@yan12125 yan12125 closed this in 8790249 Apr 6, 2016
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 6, 2016

Thanks for the report. This video requires a VIP account. You need to pass credentials to youtube-dl via --username and --pasword or --netrc, or wait until this video is unlocked for non-VIP users. In the next version a better message will be shown insteada of confusing KeyError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.