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: Invalid IPv6 URL #18309

Closed
iTeddy-w opened this issue Nov 26, 2018 · 1 comment
Closed

ValueError: Invalid IPv6 URL #18309

iTeddy-w opened this issue Nov 26, 2018 · 1 comment

Comments

@iTeddy-w
Copy link

@iTeddy-w iTeddy-w commented Nov 26, 2018

I'm using latest version and have the following issue to download youtube video.My PC browser Chrome can open the url (https://youtu.be/pZw9veQ76fo?list=RDpZw9veQ76fo) and watch the video using the shadowsocks 4.1.2。

$ C:\Users\CRI>youtube-dl -F [https://youtu.be/pZw9veQ76fo?list=RDpZw9veQ76fo]
WARNING: The url doesn't specify the protocol, trying with http
Traceback (most recent call last):
File "c:\users\cri\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "c:\users\cri\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\CRI\AppData\Local\Programs\Python\Python37-32\Scripts\youtube-dl.exe_main
.py", line 9, in
File "c:\users\cri\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl_init
.py", line 472, in main
real_main(argv)
File "c:\users\cri\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl_init
.py", line 462, in _real_main
retcode = ydl.download(all_urls)
File "c:\users\cri\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 2001, in download
url, force_generic_extractor=self.params.get('force_generic_extractor', False))
File "c:\users\cri\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 803, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "c:\users\cri\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 864, in process_ie_result
extra_info=extra_info)
File "c:\users\cri\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 792, in extract_info
ie_result = ie.extract(url)
File "c:\users\cri\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\extractor\common.py", line 508, in extract
ie_result = self._real_extract(url)
File "c:\users\cri\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\extractor\generic.py", line 2204, in _real_extract
parsed_url = compat_urlparse.urlparse(url)
File "c:\users\cri\appdata\local\programs\python\python37-32\lib\urllib\parse.py", line 368, in urlparse
splitresult = urlsplit(url, scheme, allow_fragments)
File "c:\users\cri\appdata\local\programs\python\python37-32\lib\urllib\parse.py", line 417, in urlsplit
raise ValueError("Invalid IPv6 URL")
ValueError: Invalid IPv6 URL
$

But i can download the youku video using youtube-dl without the shadowsocks。
how to resolve ValueError: Invalid IPv6 URL issue ?

@dstftw dstftw closed this Nov 26, 2018
@dstftw dstftw added the incomplete label Nov 26, 2018
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 26, 2018

There should not be any braces around the URL.

@dstftw dstftw added the invalid label Nov 26, 2018
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.