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

Not working with ID's with special char hyphen #1841

Closed
tiagojsalmeida opened this issue Nov 27, 2013 · 4 comments
Closed

Not working with ID's with special char hyphen #1841

tiagojsalmeida opened this issue Nov 27, 2013 · 4 comments

Comments

@tiagojsalmeida
Copy link

@tiagojsalmeida tiagojsalmeida commented Nov 27, 2013

Hi!

When I try to download files with hyphen ( http://www.youtube.com/watch?v=7-2yB-U3Y8I ) I get this:

Traceback (most recent call last):
File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/usr/local/bin/youtube-dl/main.py", line 18, in
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 694, in main
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 684, in _real_main
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 805, in download
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 428, in extract_info
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 131, in extract
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 149, in _real_extract
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 131, in test_redirect
File "/usr/lib/python2.6/urllib2.py", line 389, in open
req = meth(req)
File "/usr/lib/python2.6/urllib2.py", line 1078, in do_request

raise URLError('no host given')
urllib2.URLError:

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 27, 2013

It works fine here:

$ youtube-dl http://www.youtube.com/watch?v=7-2yB-U3Y8I --verbose
[debug] System config: []
[debug] User config: ['--keep-video', '--write-info-json', '--write-thumbnail', '--verbose']
[debug] Command-line args: ['http://www.youtube.com/watch?v=7-2yB-U3Y8I', '--verbose']
[debug] youtube-dl version 2013.11.26
[debug] Git HEAD: 5f09bbf
[debug] Python version 2.7.6 - Darwin-11.4.2-x86_64-i386-64bit
[debug] Proxy map: {}
[youtube] Setting language
[youtube] 7-2yB-U3Y8I: Downloading video webpage
[youtube] 7-2yB-U3Y8I: Downloading video info webpage
[youtube] 7-2yB-U3Y8I: Extracting video information
[info] Video description metadata as JSON to: Sam The Kid - 16_12_95-7-2yB-U3Y8I.info.json
[youtube] 7-2yB-U3Y8I: Downloading thumbnail ...
[youtube] 7-2yB-U3Y8I: Writing thumbnail to: Sam The Kid - 16_12_95-7-2yB-U3Y8I.jpg
[download] Resuming download at byte 9978336
[download] Destination: Sam The Kid - 16_12_95-7-2yB-U3Y8I.mp4
[download]  52.7% of 19.01MiB at 956.84KiB/s ETA 00:09

Could you post the full output if you run the command youtube-dl http://www.youtube.com/watch?v=7-2yB-U3Y8I --verbose, to help debugging in.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Dec 5, 2013

The error is raised from the generic extractor, which shouldn't be run if you give the youtube url. Could you please post which command you run?

@tiagojsalmeida
Copy link
Author

@tiagojsalmeida tiagojsalmeida commented Dec 5, 2013

Hi!
Now I really can't do anything, since I messed with ffmpeg and everything
is broken :( :( :(

2013/12/5 Jaime Marquínez Ferrándiz notifications@github.com

The error is raised from the generic extractor, which shouldn't be run if
you give the youtube url. Could you please post which command you run?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1841#issuecomment-29895779
.

@phihag
Copy link
Contributor

@phihag phihag commented Dec 5, 2013

The problem is unrelated to ffmpeg. Can you elaborate what exactly is not working? The best way to do that would be just to post the full output of the command you are running here. Make sure to add -v (or --verbose) to the command line.

@dstftw dstftw closed this Jan 24, 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
4 participants
You can’t perform that action at this time.