Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: unknown url type: www.redtube.com/XXXXXX #2160

Closed
Mno-hime opened this issue Jan 16, 2014 · 1 comment
Closed

ValueError: unknown url type: www.redtube.com/XXXXXX #2160

Mno-hime opened this issue Jan 16, 2014 · 1 comment
Labels
bug

Comments

@Mno-hime
Copy link

@Mno-hime Mno-hime commented Jan 16, 2014

(Replace "XXXXXX" with your favorite video.)
Run: youtube-dl www.redtube.com/XXXXXX
Got:

urllib2.py:258:get_type:ValueError: unknown url type: www.redtube.com/XXXXXX

Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/bin/youtube-dl/__main__.py", line 18, in <module>
    youtube_dl.main()
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 761, in main
    _real_main(argv)
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 751, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 952, in download
    self.extract_info(url)
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 493, in extract_info
    ie_result = ie.extract(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 155, in extract
    return self._real_extract(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/redtube.py", line 25, in _real_extract
    webpage = self._download_webpage(url, video_id)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 248, in _download_webpage
    res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 208, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 188, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1116, in urlopen
    return self._opener.open(req)
  File "/usr/lib64/python2.7/urllib2.py", line 396, in open
    protocol = req.get_type()
  File "/usr/lib64/python2.7/urllib2.py", line 258, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: www.redtube.com/XXXXXX

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

With youtube-dl-2014.01.08-1.fc20.noarch. If http:// is added it works just fine.

@jaimeMF jaimeMF closed this in c115296 Jan 16, 2014
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jan 16, 2014

Thanks for the report, it's fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.