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-dl -g generates URL that returns 403? #47
Comments
|
This seems to be a dupe of https://github.com/rg3/youtube-dl/issues/issue/41 |
Hi,
A few weeks ago, I started to get 403: Forbidden errors when feeding the URL I got with youtube-dl -g to mplayer.
A sample URL:
http://v8.lscache3.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dYSFJPV19FSkNNOF9KSUFH&fexp=909303%2C907048&algorithm=throttle-factor&itag=35&ipbits=0&burst=40&sver=3&expire=1293249600&key=yt1&signature=1E9F33903B75FA54A3EF8B40E963915FA82C73FE.09936E18403B1DE582637657E6D53CA6077C1984&factor=1.25&id=e5a8f27215d95722
The youtube URL in this case: http://www.youtube.com/watch?v=5ajychXZVyI
Is there anything wrong with this URL, bad encoding maybe? Youtube-dl without the -g option happily downloads the file. I couldn't confirm that the URL -g is printing is in fact the same youtube-dl is using internally. Or could this be a browser string issue, where mplayer isn't sending one, causing youtube to reject it as a client? In that case it doesn't really have anything to do with youtube-dl, of course.
y the way, youtube-dl is a great tool, together with mplayer it gives me back a lot of the control people used to have, i.e. deciding where to put the video window, resizing it, using my own shortcut keys, the list goes on.. and it allows me to minimize the use of the Flash plugin.. so thanks a lot!