Bug 1268965

Summary: [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
Product: [Fedora] Fedora Reporter: Gwendal <ezwen-redhatbugzilla>
Component: youtube-dlAssignee: Till Maas <opensource>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: ezwen-redhatbugzilla, mcepl, mcepl, opensource
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/b844d097ff90722b956fd842e09208e7226af7fd
Whiteboard: abrt_hash:906676786e7b84fbf2f395b1d78c5d1522367862;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-09 10:11:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

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