ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.77k stars 9.98k forks source link

Add hds / hds_sd support for rts.ch (with solution) #4873

Closed goundoulf closed 9 years ago

goundoulf commented 9 years ago

$ youtube-dl -f hds_sd http://www.rts.ch/play/tv/passe-moi-les-jumelles/video/la-fee-des-bois-mustang-les-chemins-du-vent?id=3854925 [RTS] la-fee-des-bois-mustang-les-chemins-du-vent: Downloading JSON metadata [download] Downloading f4m manifest ERROR: unable to download video data: HTTP Error 403: Forbidden

The solution is to append this at the end of the request: ?$AUTH_PARAMS&g=KEELPSHKBDEC&hdcore=3.4.0&plugin=aasp-3.4.0.132.66

And $AUTH_PARAMS you can get from here: http://tp.srgssr.ch/token/akahd.xml?stream=$STREAM_URL*

You can have a look at this script I made: https://github.com/goundoulf/rts-dl/blob/master/rts-dl

dstftw commented 9 years ago

Thanks for the report, this will be fixed in the next version.

goundoulf commented 9 years ago

Thanks for you quick fix!

phihag commented 9 years ago

I believe this issue to be fixed in youtube-dl 2015.02.09 and newer. See our FAQ if you need help updating.

goundoulf commented 9 years ago

Yes this is fixed. Thanks a lot!