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.
I still get invalid URL for youtu.be links #142
Comments
|
youtu.be links are just
, you can plug the resulting URL into youtube-dl and it works. We should handle all 302 redirects in the generic IE. |
|
I have tried plugging the resulting URL into youtube-dl it did not work: [frida@localhost youtube]$ curl -Is http://youtu.be/Rs6RefV1td4 | sed -n 's#Location: ##p' [frida@localhost youtube]$ python youtube-dl http://www.youtube.com/watch?v=Rs6RefV1td4&feature=youtu.be However we used to download youtu.be links all the time, this is the first time this happens, How did it work before? the generic IE also results in the invalid URL, Could you please advise me on how to solve this issue? Thank you |
|
I am sorry, I have tried to do the above again and it worked, sorry for the inconvenience. But I am still wondering how it worked before the Aug 4th. Thanks a lot. |
|
@fridakiriakos youtu.be links worked before because we did not treat them as generic redirects, but extracted the youtube ID. The above patch should fix it; alternatively, you can also use my fork of youtube-dl. |
|
thank you so much, both version work well :) appreciate all your help. |
Hello Everyone
I have downloaded the latest version of youtube-dl and I still get the same error for youtu.be links.
Here is the output I always get when downloading those links:
[frida@localhost youtube]$ python youtube-dl http://youtu.be/Rs6RefV1td4
WARNING: Falling back on generic information extractor.
[generic] Rs6RefV1td4: Downloading webpage
[generic] Rs6RefV1td4: Extracting information
ERROR: Invalid URL: http://youtu.be/Rs6RefV1td4
Thanks a lot.
Frida