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.
[twitch.tv][includes workaround + fix] KeyError('redirect',) when downloading with username/password #14090
Comments
|
Post the output of |
|
Not a big surprise it gets redirected to a login page:
|
|
I have the same problem. The described workaround also works for me. Thanks @Gorrrg! |
|
Looks like the response includes 'redirect_path' now. Changing the 'redirect_url = urljoin(...)' line to this fixed the problem for me:
|
|
Thanks, I'm having the same issue. The workaround worked for me. |
|
Can someone help me with the workaround? I tried:
I have the newest version and all. Gist to verbose output can be found here. |
|
Error 403 means that you have successfully authenticated but you don't have permission to acess that resource. |
|
What can I do to help get this fixed? I'm getting the same error. |
|
I'm getting the same error:
|
|
And here is the output with --dump-pages:
|
|
Had same issue on this page. Past episode that requires subscription. Cloning repo and making @dglo's change to the twitch extractor worked for me as well.
|
|
For folks that land here that don't know exactly what to do to fix this if you have even a tiny bit of git and python knowledge you just need to modify the twitch.py extractor file after cloning the repo.
Then you can download the vid you want by running a command like this from the top level of the repo.
|
|
Had the same issue and the initial Version: 2018.01.07 |
|
I've sent a pull request to fix this: #15264 |
When you try to use login credentials using --username and --password on Twitch.tv now, youtube-dl gets redirected and aborts downloading the video(s).
A workaround is to create a cookies.txt file using --cookies together with --username and --password once (it gets created despite the redirect error) and then invoke youtube-dl a second time without the --username and --password command options but only using --cookies cookies.txt.
Being able to use login credentials or cookies with youtube-dl is important because some streamers make their VODs only available to subscribers.
Also note that this bug is reproducable with any Twitch.tv VOD not just sub-only VODs, all it takes is trying to use --username and --password for the redirect error to occur.