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

Video IDs starting with - may be parsed as an option #220

Open
TheDude53 opened this issue Oct 10, 2022 · 0 comments
Open

Video IDs starting with - may be parsed as an option #220

TheDude53 opened this issue Oct 10, 2022 · 0 comments

Comments

@TheDude53
Copy link

When using the global ytdl command from a terminal, simply using the raw video ID as an argument may cause the ID to be parsed as an option, rather than the actual video ID. This causes ytdl to output an error similar to error: unknown option '-X1X7HuFHSg'. While an easy workaround would be to use a prefix such as http://youtu.be/, I figured I should still open an issue as this is likely not intended behavior.

Examples

What happened

command-demo@somelinuxdistro:~# ytdl -i -X1X7HuFHSg
error: unknown option '-X1X7HuFHSg'

What should happen

command-demo@somelinuxdistro:~# ytdl -i -X1X7HuFHSg
title: The Extreme Diet Coke & Mentos Experiments II - The Domino Effect
author: EepyBird
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant