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

Cant Download Single Video from Youtube #11159

Closed
xdarshh opened this issue Nov 10, 2016 · 1 comment
Closed

Cant Download Single Video from Youtube #11159

xdarshh opened this issue Nov 10, 2016 · 1 comment

Comments

@xdarshh
Copy link

@xdarshh xdarshh commented Nov 10, 2016

  • I've verified and I assure that I'm running youtube-dl 2016.11.08.1

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl -v <youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' -v --merge-output-format mp4 “http://www.youtube.com/watch?v=KWZGAExj-es”>
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-f', u'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio', u'-v', u'--merge-output-format', u'mp4', u'\u201chttp://www.youtube.com/watch?v=KWZGAExj-es\u201d']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.11.08.1
[debug] Python version 2.7.12 - Darwin-16.1.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.2, ffprobe 3.2
[debug] Proxy map: {}
WARNING: The url doesn't specify the protocol, trying with http
[generic] watch?v=KWZGAExj-es”: Requesting header
WARNING: Could not send HEAD request to http://“http://www.youtube.com/watch?v=KWZGAExj-es”: nonnumeric port: '-hw3b'
[generic] watch?v=KWZGAExj-es”: Downloading webpage
ERROR: Unable to download webpage: nonnumeric port: '-hw3b' (caused by InvalidURL(u"nonnumeric port: '-hw3b'",)); 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.
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 404, 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_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 872, in http_open
    req)
  File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1167, in do_open
    h = http_class(host, timeout=req.timeout, **http_conn_args)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 809, in _create_http_connection
    hc = http_class(*args, **kwargs)
  File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 751, in __init__
    (self.host, self.port) = self._get_hostport(host, port)
  File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 792, in _get_hostport
    raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
<end of log>

Description of your issue, suggested solution and other information

i tried to download single video before with the same config and it was working but now it doesn't

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 10, 2016

The problem are the symbols: “ and ”. They are not quotation marks ("), so they aren't recognized

@yan12125 yan12125 closed this Nov 10, 2016
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.