Bug 1268965 - [abrt] youtube-dl: urllib2.py:285:get_type:ValueError: unknown url type: //popplers5.bandcamp.com/download/track?enc=mp3-128&fsig=4b919b6c34bc462a49b9f509e14e2f11&id=1264847924&stream=1&ts=1443327390.0
Summary: [abrt] youtube-dl: urllib2.py:285:get_type:ValueError: unknown url type: //po...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: youtube-dl
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Till Maas
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:906676786e7b84fbf2f395b1d78...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-05 18:24 UTC by Gwendal
Modified: 2018-04-11 09:48 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-09 10:11:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (2.98 KB, text/plain)
2015-10-05 18:24 UTC, Gwendal
no flags Details
File: environ (3.11 KB, text/plain)
2015-10-05 18:24 UTC, Gwendal
no flags Details

Description Gwendal 2015-10-05 18:24:20 UTC
Description of problem:
I was trying to download this page : http://hunty.biz/album/nexus-genesis , and it crashed at "[download] Downloading video 18 of 21".

Version-Release number of selected component:
youtube-dl-2015.09.09-1.fc22

Additional info:
reporter:       libreport-2.6.2
cmdline:        /usr/bin/python2 /usr/bin/youtube-dl -x -c -R 20 --audio-format vorbis --autonumber-size 2 -o '%(autonumber)s - %(title)s.%(ext)s' http://hunty.biz/album/nexus-genesis
dso_list:       python-libs-2.7.10-8.fc22.x86_64
executable:     /usr/bin/youtube-dl
kernel:         4.1.8-200.fc22.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
urllib2.py:285:get_type:ValueError: unknown url type: //popplers5.bandcamp.com/download/track?enc=mp3-128&fsig=4b919b6c34bc462a49b9f509e14e2f11&id=1264847924&stream=1&ts=1443327390.0

Traceback (most recent call last):
  File "/usr/bin/youtube-dl", line 9, in <module>
    load_entry_point('youtube-dl==2015.9.9', 'console_scripts', 'youtube-dl')()
  File "/usr/lib/python2.7/site-packages/youtube_dl/__init__.py", line 410, in main
    _real_main(argv)
  File "/usr/lib/python2.7/site-packages/youtube_dl/__init__.py", line 400, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1658, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 671, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 724, in process_ie_result
    extra_info=extra_info)
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 671, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 832, in process_ie_result
    extra_info=extra)
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 724, in process_ie_result
    extra_info=extra_info)
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 671, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 717, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1328, in process_video_result
    self.process_info(new_info)
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1590, in process_info
    success = dl(filename, info_dict)
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1532, in dl
    return fd.download(name, info)
  File "/usr/lib/python2.7/site-packages/youtube_dl/downloader/common.py", line 342, in download
    return self.real_download(filename, info_dict)
  File "/usr/lib/python2.7/site-packages/youtube_dl/downloader/http.py", line 60, in real_download
    data = self.ydl.urlopen(request)
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1865, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib64/python2.7/urllib2.py", line 423, in open
    protocol = req.get_type()
  File "/usr/lib64/python2.7/urllib2.py", line 285, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: //popplers5.bandcamp.com/download/track?enc=mp3-128&fsig=4b919b6c34bc462a49b9f509e14e2f11&id=1264847924&stream=1&ts=1443327390.0

Local variables in innermost frame:
self: <urllib2.Request instance at 0x7fc4f1e26d88>

Comment 1 Gwendal 2015-10-05 18:24:23 UTC
Created attachment 1080017 [details]
File: backtrace

Comment 2 Gwendal 2015-10-05 18:24:24 UTC
Created attachment 1080018 [details]
File: environ

Comment 3 Matěj Cepl 2015-10-09 10:11:53 UTC
OK, this is wrong URL, missing scheme.

Comment 4 Gwendal 2015-10-09 11:00:10 UTC
This was solved here: https://github.com/rg3/youtube-dl/issues/7077


Note You need to log in before you can comment on or make changes to this bug.