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
132.61k stars 10.05k forks source link

Unsupported URL with CBC radio #5156

Closed jones-github closed 8 years ago

jones-github commented 9 years ago

youtube-dl-2015.03.03.1-1.fc20.noarch says "Unsupported URL" when trying to download a CBC radio audio clip. The command I used is: "youtube-dl -v --dump-intermediate-pages 'http://www.cbc.ca/player/AudioMobile/All%20in%20a%20Weekend%20Montreal/ID/2657632011/'"

My typescript file contains: "Script started on Sat 07 Mar 2015 11:45:31 AM EST [jones@localhost youtubedl]$ youtube-dl -v --dump-intermediate-pages 'http://www.cbc.^M<youtube-dl -v --dump-intermediate-pages 'http://www.cbc.c ^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^Ha/player/AudioMobile/All%20^M^M<diate-pages 'http://www.cbc.ca/player/AudioMobile/All%20i ^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^Hn%20a%20Weekend%20Montreal/^M^M<ca/player/AudioMobile/All%20in%20a%20Weekend%20Montreal/I ^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^HD/2657632011/'^M [debug] System config: ['--prefer-free-formats']^M [debug] User config: []^M [debug] Command-line args: ['-v', '--dump-intermediate-pages', 'http://www.cbc.ca/player/AudioMobile/All%20in%20a%20Weekend%20Montreal/ID/2657632011/']^M [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8^M [debug] youtube-dl version 2015.03.03.1^M [debug] Python version 2.7.5 - Linux-3.18.8-100.fc20.x86_64-x86_64-with-fedora-20-Heisenbug^M [debug] exe versions: ffmpeg 2.1.7, ffprobe 2.1.7^M [debug] Proxy map: {}^M [generic] 2657632011: Requesting header^M ^[[0;33mWARNING:^[[0m Falling back on generic information extractor.^M [generic] 2657632011: Downloading webpage^M [generic] Dumping request to http://www.cbc.ca/player/A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C9zY3JpcHQ+CjwhLS08c2NyaXB0IHR5cGU9InRleHQvamF2YXNjcmlwdCIgc3JjPSIvZy9pL3l1aW1vZHVsZXMvMy4xMS4wLmpzIj48L3NjcmlwdD4tLT4gPCEtLSByZW1vdmUgdGhpcyBhZnRlciB0aGUgdmlkZW8gdGVhbSByZWZhY3RvcnMgdGhlUGxhdGZvcm1Q [generic] 2657632011: Extracting information^M ^[[0;31mERROR:^[[0m Unsupported URL: http://www.cbc.ca/player/AudioMobile/All%20in%20a%20Weekend%20Montreal/ID/2657632011/^M Traceback (most recent call last):^M File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/generic.py", line 775, in _real_extract^M doc = parse_xml(webpage)^M File "/usr/lib/python2.7/site-packages/youtube_dl/utils.py", line 1506, in parse_xml^M tree = xml.etree.ElementTree.XML(s.encode('utf-8'), **kwargs)^M File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1300, in XML^M parser.feed(text)^M File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1642, in feed^M self._raiseerror(v)^M File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror^M raise err^M ParseError: not well-formed (invalid token): line 70, column 124^M Traceback (most recent call last):^M File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 648, in extract_info^M ie_result = ie.extract(url)^M File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 275, in extract^M return self._real_extract(url)^M File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/generic.py", line 1226, in _real_extract^M raise UnsupportedError(url)^M UnsupportedError: Unsupported URL: http://www.cbc.ca/player/AudioMobile/All%20in%20a%20Weekend%20Montreal/ID/2657632011/^M ^M [jones@localhost youtubedl]$ exit^M exit^M

Script done on Sat 07 Mar 2015 11:46:07 AM EST "

jones-github commented 9 years ago

Also posted at https://bugzilla.redhat.com/show_bug.cgi?id=1199736

The typscript is posted there as an attachment.

yan12125 commented 8 years ago

Thanks for the report and sorry for the late response. CBC radios will be supported in the next version.

ghost commented 8 years ago

The test case added in commit 77bd4bef46b3d13f671294ca2a836cb4ca0fbd25 fails for me.

yan12125 commented 8 years ago

It's fixed in git but not included in the latest release (2016.05.16) yet.

ghost commented 8 years ago

ok. I was just starting to write a new bug report, so I'll stop and pull from git. Thanks!