youtube-dl -g generates URL that returns 403? #36

Closed
opened 2026-02-20 21:00:18 -05:00 by deekerman · 1 comment
Owner

Originally created by @thegroove on GitHub (Dec 24, 2010).

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!

Originally created by @thegroove on GitHub (Dec 24, 2010). 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!
Author
Owner

@thegroove commented on GitHub (Dec 24, 2010):

This seems to be a dupe of https://github.com/rg3/youtube-dl/issues/issue/41
The suggested workaround works for me. Sorry for the dupe!

@thegroove commented on GitHub (Dec 24, 2010): This seems to be a dupe of https://github.com/rg3/youtube-dl/issues/issue/41 The suggested workaround works for me. Sorry for the dupe!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#36
No description provided.