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 #1308

Closed
Rudloff opened this issue Aug 24, 2013 · 9 comments
Closed

ValueError: unknown url type #1308

Rudloff opened this issue Aug 24, 2013 · 9 comments

Comments

@Rudloff
Copy link
Contributor

@Rudloff Rudloff commented Aug 24, 2013

pierre@Rudloff:~$ youtube-dl --verbose http://tael67.free.fr/videos/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://tael67.free.fr/videos/']
[debug] youtube-dl version 2013.08.23
[debug] Python version 2.7.3 - Linux-3.2.0-4-amd64-x86_64-with-debian-7.1
[debug] Proxy map: {}
WARNING: Falling back on generic information extractor.
[generic] : Downloading webpage
[generic] : Extracting information
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/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>
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 651, in main

  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 635, in _real_main

  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 560, in download
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 327, in extract_info
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 410, in process_ie_result
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 357, in process_ie_result
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 535, in process_info
  File "/usr/bin/youtube-dl/youtube_dl/FileDownloader.py", line 429, in _do_download
  File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 393, in open
    protocol = req.get_type()
  File "/usr/lib/python2.7/urllib2.py", line 255, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: Camping.mp4
@phihag
Copy link
Contributor

@phihag phihag commented Aug 24, 2013

Thanks for the report, fixed in git and in the next release.

@phihag phihag closed this in 9585f89 Aug 24, 2013
@Rudloff
Copy link
Contributor Author

@Rudloff Rudloff commented Aug 24, 2013

Thanks, but is it normal that it downloads only the first video ?

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Aug 24, 2013

It's the current behaviour: #1300

@isole
Copy link

@isole isole commented Jan 31, 2017

This re-occurs with 2017.01.29

$ sudo youtube-dl -U
youtube-dl is up-to-date (2017.01.29)
.....
$ youtube-dl http://youtube.com/someplaylist
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'http://youtube.com/somevideo', u'--verbose']
[debug] Encodings: locale US-ASCII, fs utf-8, out US-ASCII, pref US-ASCII
[debug] youtube-dl version 2017.01.29
[debug] Python version 2.7.12 - Darwin-16.3.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.1.2, ffprobe 3.1.2
[debug] Proxy map: {}
[youtube:playlist] someplaylist: Downloading webpage
[download] Downloading playlist: SomePlaylist
[youtube:playlist] playlist SomePlaylist Downloading 12 videos
[download] Downloading video 1 of 12
[youtube] aDPANvMhYpM: Downloading webpage
[youtube] aDPANvMhYpM: Downloading video info webpage
[youtube] aDPANvMhYpM: Extracting video information
[youtube] {22} signature length 42.43, html5 player en_US-vflV3n15C
[youtube] aDPANvMhYpM: Downloading player /yts/jsbin/player-en_US-vflV3n15C/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1057, in _decrypt_signature
    video_id, player_url, s
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 971, in _extract_signature_function
    errnote='Download of %s failed' % player_url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 529, in _download_webpage
    res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal, encoding=encoding, data=data, headers=headers, query=query)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 436, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 416, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 421, in open
    protocol = req.get_type()
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 283, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: /yts/jsbin/player-en_US-vflV3n15C/base.js
 (caused by ValueError(u'unknown url type: /yts/jsbin/player-en_US-vflV3n15C/base.js',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1057, in _decrypt_signature
    video_id, player_url, s
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 971, in _extract_signature_function
    errnote='Download of %s failed' % player_url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 529, in _download_webpage
    res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal, encoding=encoding, data=data, headers=headers, query=query)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 436, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 416, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 421, in open
    protocol = req.get_type()
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 283, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: /yts/jsbin/player-en_US-vflV3n15C/base.js
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 369, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1646, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1067, in _decrypt_signature
    'Signature extraction failed: ' + tb, cause=e)
ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1057, in _decrypt_signature
    video_id, player_url, s
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 971, in _extract_signature_function
    errnote='Download of %s failed' % player_url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 529, in _download_webpage
    res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal, encoding=encoding, data=data, headers=headers, query=query)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 436, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 416, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 421, in open
    protocol = req.get_type()
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 283, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: /yts/jsbin/player-en_US-vflV3n15C/base.js
 (caused by ValueError(u'unknown url type: /yts/jsbin/player-en_US-vflV3n15C/base.js',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
@youcanjive
Copy link

@youcanjive youcanjive commented Jan 31, 2017

@morsik
Copy link

@morsik morsik commented Jan 31, 2017

I have the same problem. Using youtube-dl-2017.01.10-1.fc25.noarch.

@morsik
Copy link

@morsik morsik commented Jan 31, 2017

I downloaded version from git. Looks like it works with this: #11892

@isole
Copy link

@isole isole commented Feb 1, 2017

I downloaded version from git. Looks like it works with this: #11892

Indeed. Updated to 2017.01.31 and it works. Sorry for the noise

@Hrxn
Copy link

@Hrxn Hrxn commented Feb 2, 2017

I am having the same problem. I'm sorry but my understanding of this is all
very limited, but up until yesterday it was all working perfectly. I have
only used the Windows executable file, I simply don't understand how to do
it any other way. I open a "cmd" window, drag youtube-dl.exe into it then
paste the youtube vid url and simply hit enter. It's worked beautifully up
until today. And yes I have made sure I'm using the latest version. Do I
need to do something differently now ? Again, my apologies for being so
basic with it. Any hep, in layman's terms, would be greatly appreciated.

@youcanjive No, it's still working as before, just make sure you're using the latest version of youtube-dl.exe

@ytdl-org ytdl-org locked and limited conversation to collaborators Feb 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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