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

youku.com downloading fails with 403 error #8068

Closed
rupertbaxter2 opened this issue Dec 31, 2015 · 4 comments
Closed

youku.com downloading fails with 403 error #8068

rupertbaxter2 opened this issue Dec 31, 2015 · 4 comments
Assignees
Labels

Comments

@rupertbaxter2
Copy link
Contributor

@rupertbaxter2 rupertbaxter2 commented Dec 31, 2015

Yesterday youku.com downloading was working fine, but today it has stopped working. Below is a sample debug log. The same 403 error occurs with any video. I have tried on multiple computers with different IP's attached to different networks.

$ youtube-dl -v http://v.youku.com/v_show/id_XMTI5NjA0MzQzMg==.html
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://v.youku.com/v_show/id_XMTI5NjA0MzQzMg==.html']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.12.29
[debug] Python version 2.7.3 - CYGWIN_NT-10.0-WOW6-1.7.27-0.271-5-3-i686-32bit
[debug] exe versions: ffmpeg N-71262-g511585c, rtmpdump 2.3
[debug] Proxy map: {}
[youku] XMTI5NjA0MzQzMg: Downloading JSON metadata
[download] Downloading playlist: Tom Cruise Destroy 碟中谍5 毁车镜头(BMW M3道具车)
[youku] playlist Tom Cruise Destroy 碟中谍5 毁车镜头(BMW M3道具车): Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[debug] Invoking downloader on u'http://k.youku.com/player/getFlvPath/sid/54515286915431225abb1_00/st/flv/fileid/030001010055B825D0C1E2044C53959310DECA-8A58-F260-C747-F8C23C953A36?ep=dyaRG0yPXsgJ5Cbbiz8bZSmzJiUOXP4J9h%2BFgNJjALshTZq3mzulx%2B6xO%2F1CEv1qdyEPFeLyqtCTHzNlYfgyrGAQqUyuOfqT%2BfTk5dtbt5IDFRAzcbzUslSaRjHy&ypp=0&ctype=12&myp=0&K=06fcca506542a356282b1110&ev=1&token=4513&hd=1&oip=1626624129'
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1609, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1551, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 342, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 58, in real_download
    data = self.ydl.urlopen(request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1886, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 444, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
@yan12125 yan12125 added the broken-IE label Dec 31, 2015
@yan12125 yan12125 self-assigned this Dec 31, 2015
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 31, 2015

I've tried to implement the algorithm mentioned in http://www.cnblogs.com/zhxilin/p/4993074.html#3338262. It seems works but I need to wait for the response from the original author for merging into youtube-dl.

@tommyjiang
Copy link

@tommyjiang tommyjiang commented Jan 1, 2016

Thanks for your contribution @yan12125. Hope it could be merged as soon as possible.

yan12125 added a commit that referenced this issue Jan 1, 2016
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jan 1, 2016

Pushed to master (034caf7). Youku.com will work in the next version again.

@yan12125 yan12125 closed this Jan 1, 2016
@rupertbaxter2
Copy link
Contributor Author

@rupertbaxter2 rupertbaxter2 commented Jan 10, 2016

Thanks @yan12125 !

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
3 participants
You can’t perform that action at this time.