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

Unable to download video with hyphen in name #3591

Closed
victorhooi opened this issue Aug 26, 2014 · 1 comment
Closed

Unable to download video with hyphen in name #3591

victorhooi opened this issue Aug 26, 2014 · 1 comment

Comments

@victorhooi
Copy link

@victorhooi victorhooi commented Aug 26, 2014

Hi,

I'm attempting to download the Youtube video at:

https://www.youtube.com/watch?v=-X0uOOHVp6s

However, youtube-dl appears to choke on the hyphen in the video ID:

> youtube-dl --write-sub -X0uOOHVp6s
Usage: youtube-dl [options] url [url...]

youtube-dl: error: no such option: -X

I've also tried quoting the video ID, and you get the same error:

> youtube-dl --write-sub "-X0uOOHVp6s"
Usage: youtube-dl [options] url [url...]

youtube-dl: error: no such option: -X

Escaping with \ also doesn't seem to work:

youtube-dl --write-sub \-X0uOOHVp6s
Usage: youtube-dl [options] url [url...]

youtube-dl: error: no such option: -X
@phihag
Copy link
Contributor

@phihag phihag commented Aug 26, 2014

This is not specific to youtube-dl, but all shell programs. Escaping cannot work since the dash is (for once) not interpreted by the shell. Instead, try adding a double dash before the arguments, as in:

youtube-dl --write-sub -- -X0uOOHVp6s
@phihag phihag closed this Aug 26, 2014
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.