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.
Unable to from url's like http://m.youtube.com/#/watch?v=p9mfw_ZoCFE #484
Comments
|
Uh, this will be a nice trip in regexland... |
|
@FiloSottile I'm currently using a regex to parse urls in the form of the above use case before passing the url to |
|
Made it with a single added line to the regex, I hope not to have broken anything ^^ |
|
Oh, noticed now the "assigned" field, I hope not to have duplicated you, @phihag, sorry! |
|
@FiloSottile Thanks Filippo - As always, you guys are too fast. |
Youtube rewrites urls like this
http://m.youtube.com/#/watch?v=p9mfw_ZoCFEto thishttp://m.youtube.com/watch?v=p9mfw_ZoCFEwhen accessed from a desktop, removing the#/.Also, youtube rewrites urls like this
http://m.youtube.com/?reload=3&rdm=mbpn8t3jv#/watch?v=_C-PAEhKa2oto thishttp://m.youtube.com/watch?v=_C-PAEhKa2oHowever, I noticed youtube-dl is unable to download from urls like the former(I get the error
ERROR: Invalid URL:) but is able to download the video from urls like the latter.Is it possible for the developers to write some logic that performs the same rewrite rule so that those videos can be downloaded without having to manually having to plug them into the browser to get the rewritten url? (That would be awesome!)