Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Can't download Twitch VOD #6628
Comments
|
Can you watch it in browser? |
|
Yes, I can. This exact error happends regardless whether I supply Twitch credentials or not. |
|
I'm getting the same 403 in browser:
|
|
Well, If I logout in browser, I can see "?nauth" request in console with 403 response, too. Apparently that's because this VoD is subscribers-only? |
|
I don't know, there is no indication of that. It should work with login and password provided. Post the output of |
|
|
Some extra params are probably passed for premium videos or even a different request. Can't tell anything concrete without a premium account. |
|
I just discovered that twitch login is broken and "succeeds" from the point of view of youtube-dl but fails in reality. This is because it tries to post the login to The later url is available as self._LOGIN_POST_URL, but since it finds action="/authentications/new" on the login form it tries to urljoin "https://secure.twitch.tv/login" (aka self._LOGIN_URL) and "/authentications/new" giving the first url. The first url gives a page that essentially says "page not found", but more importantly it does not contain an element with class "subwindow_notice", which is what youtube-dl looks for to indicate a login error. As to why it gets the wrong url, I think this is because "https://secure.twitch.tv/login" redirects to "https://passport.twitch.tv/authentications/new?" but _download_webpage doesn't inform us of that. I don't know how to fix it (except for forcing the use of self._LOGIN_POST_URL), which is why this is not a PR. |
|
Also once you fix this you may encounter (rather often) a captcha error. This I don't know how to bypass. |
|
Getting the same errors: Joass-MBP:~ pettenstein$ youtube-dl --verbose http://www.twitch.tv/geekandsundry/v/19784593
[debug] System config: [u'--netrc']
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'http://www.twitch.tv/geekandsundry/v/19784593']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.10.16
[debug] Python version 2.7.10 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.8, ffprobe 2.8
[debug] Proxy map: {}
[twitch:vod] Downloading login page
[twitch:vod] Logging in as pettenstein
[twitch:vod] 19784593: Downloading vod info JSON
[twitch:vod] 19784593: Downloading vod access token
[twitch:vod] 19784593: Downloading m3u8 information
ERROR: Failed to download m3u8 information: HTTP Error 403: ERROR (caused by HTTPError()); 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.
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 329, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1872, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 475, in error
return self._call_chain(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 558, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) |
|
This won't be fixed until somebody provides premium for testing. |
|
Can I mail you at the address on your profile? |
|
Yes. |
|
I'm also having the same problem (can't download a VOD that's only available to channel subscribers), and I'm happy to help debug. |
|
I would be willing to donate a subscribed Twitch account again. (@dstftw) |
Here is the output: