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.8k stars 9.99k forks source link

Xboxdvr not working - URL encoding issue #10118

Open lawlmart opened 8 years ago

lawlmart commented 8 years ago

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.07.17. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.


The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

~ lucas$ youtube-dl http://xboxdvr.com/gamer/NormalMantis456/video/19687239 -s --dump-json -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'http://xboxdvr.com/gamer/NormalMantis456/video/19687239', u'-s', u'--dump-json', u'-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.09.03
[debug] Python version 2.7.10 - Darwin-15.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.0.2, ffprobe 3.0.2, rtmpdump 2.4
[debug] Proxy map: {}
WARNING: Falling back on generic information extractor.
{"display_id": "oleE=&st=2016-07-18T20:43:39Z&se=2016-07-18T21:48:39Z&sp=r&__gda__=1468878519_193f4b7c275b962b2656577ff4f9fce0", "extractor": "generic", "format": "0 - unknown", "requested_subtitles": null, "uploader": "xboxdvr.com", "format_id": "0", "playlist_index": null, "playlist": null, "http_headers": {"Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7", "Accept-Language": "en-us,en;q=0.5", "Accept-Encoding": "gzip, deflate", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/20.0 (Chrome)"}, "url": "http://gameclipscontent-d2012.xboxlive.com/000901f2c1b0d814-1aa44090-2f86-475b-bd34-3cbba0a4f337/GameClip-Original.MP4?sv=2014-02-14&sr=c&sig=O8GPB6MywX/Ib//egGNbAkHZkl8QhM5v/4aKPs/oleE=&st=2016-07-18T20:43:39Z&se=2016-07-18T21:48:39Z&sp=r&__gda__=1468878519_193f4b7c275b962b2656577ff4f9fce0", "extractor_key": "Generic", "title": "NormalMantis456's Xbox clips on XboxDVR.com", "id": "oleE=&st=2016-07-18T20:43:39Z&se=2016-07-18T21:48:39Z&sp=r&__gda__=1468878519_193f4b7c275b962b2656577ff4f9fce0", "ext": "mp4", "webpage_url": "http://xboxdvr.com/gamer/NormalMantis456/video/19687239", "_filename": "NormalMantis456's Xbox clips on XboxDVR.com-oleE=&st=2016-07-18T20_43_39Z&se=2016-07-18T21_48_39Z&sp=r&__gda__=1468878519_193f4b7c275b962b2656577ff4f9fce0.mp4", "fulltitle": "NormalMantis456's Xbox clips on XboxDVR.com", "age_limit": 0, "webpage_url_basename": "19687239"}
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):


Description of your issue, suggested solution and other information

Xboxdvr has encoded colons in the url signature. Youtube-dl is decoding them in the returned URL, causing ffmpeg to return a 403 error when it attempts to download the URL. Youtube-dl should not decode the URL parameters.

xenova commented 4 years ago

I know it's quite late, but I fixed it in this pull request: https://github.com/ytdl-org/youtube-dl/pull/23395

(Note that XboxDVR changed to GamerDVR)