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.32k stars 9.95k forks source link

podomatic support is partially broken #2763

Closed GijsTimmers closed 10 years ago

GijsTimmers commented 10 years ago

I tried to download a track from the channel ostbahnhof.podomatic.com, but youtube-dl fails to do so:

[user@ubuntu /tmp]$ youtube-dl --verbose http://ostbahnhof.podomatic.com/entry/2013-11-15T16_31_21-08_00
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://ostbahnhof.podomatic.com/entry/2013-11-15T16_31_21-08_00']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.04.13
[debug] Python version 2.7.5+ - Linux-3.11.0-19-generic-i686-with-Ubuntu-13.10-saucy
[debug] Proxy map: {}
[podomatic] 2013-11-15T16_31_21-08_00: Downloading video info
Traceback (most recent call last):
  File "/usr/bin/youtube-dl", line 6, in <module>
    youtube_dl.main()
  File "/usr/lib/python2.7/dist-packages/youtube_dl/__init__.py", line 845, in main
    _real_main(argv)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/__init__.py", line 835, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1036, in download
    self.extract_info(url)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 525, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 562, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 817, in process_video_result
    self.process_info(new_info)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1007, in process_info
    success = dl(filename, info_dict)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 983, in dl
    return fd.download(name, info)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/downloader/common.py", line 291, in download
    return self.real_download(filename, info_dict)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/downloader/http.py", line 54, in real_download
    data = self.ydl.urlopen(request)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1211, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 396, in open
    protocol = req.get_type()
  File "/usr/lib/python2.7/urllib2.py", line 258, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: 
[user@ubuntu /tmp]$

This is strange, as podomatic support does seem to work with one of the more popular podcasts, for instance martinlodge.podomatic.com:

[user@ubuntu /tmp]$ youtube-dl --verbose http://martinlodge.podomatic.com/entry/2014-04-15T10_48_20-07_00
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://martinlodge.podomatic.com/entry/2014-04-15T10_48_20-07_00']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.04.13
[debug] Python version 2.7.5+ - Linux-3.11.0-19-generic-i686-with-Ubuntu-13.10-saucy
[debug] Proxy map: {}
[podomatic] 2014-04-15T10_48_20-07_00: Downloading video info
[download] Destination: Martin Lodge Mi Soul Radio Show 14th April 2014-2014-04-15T10_48_20-07_00.mp3
[download] 100% of 149.33MiB in 01:40
[user@ubuntu /tmp]$ 

A fix for this problem would be greatly appreciated. Thank you.

dstftw commented 10 years ago

Thanks for the report, fixed. This will be available in the next version of youtube-dl.

GijsTimmers commented 10 years ago

Thank you.

phihag commented 10 years ago

The fix has been integrated into youtube-dl 2014.04.19 and newer. It looks like you have installed youtube-dl with a package manager or pip, so use that to update.