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.
youtube 404 error due to bad regex #346
Comments
|
Well, I finally managed to get to the one line (: 1175) Whatcha think? |
|
That is a really bad formatted Gist to explain the regex. The world is never as simple as it looks, guy. Anyway, I am looking into your bug, thanks for reporting it! |
|
I enjoy being corrected! (remember the S&M part…) and yeah, I see what you did there. I'll try to keep the negative lookaround on the playlists & the different params allowed: Voilà. It works fine with my link and those in your Gist. And sorry for that bad formated one! |
|
Oh man this is stupid. |
|
Don't worry, happens often :) |
|
For reference, we have done something about it; the above command now outputs
|
Hi,
Rationale:
While watching youtube videos embedded on other's website, you click on the YouTube icon in the swf player it opens up a page. I usually get this page's URL to input to youtube-dl. But sometimes there is GET info on where in the video's timeline I was; it appears as some wild '#!' or the like… and so it 404.
More generally, if the v GET param isn't the first GET param, the download screws.
URL: http://www.youtube.com/watch?feature=player_embedded&v=0w_xEUoK79o#!
youtube-dl --version: 2012.02.27
python --version: Python 2.7.1
Well, I like regexes (yep, I'm totally into SM) and I don't really know how to help.
In order to fix this: as soon as you've found out that you're fed a youtube link, seek for something like “v=([0-9a-zA-Z+_-]{11})”.
That's it.
And thanks for all the fish!