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

syntax error -o #173

Closed
resnostyle opened this issue Sep 21, 2011 · 2 comments
Closed

syntax error -o #173

resnostyle opened this issue Sep 21, 2011 · 2 comments

Comments

@resnostyle
Copy link

@resnostyle resnostyle commented Sep 21, 2011

When I use python youtube-dl.py -o %(title)s-%(id)s.%(ext)s --playlist-end=3 -t -c -a

I always get syntax errors, what am I doing wrong?

@phihag
Copy link
Contributor

@phihag phihag commented Sep 21, 2011

In POSIX-compatible shells, braces induce a subshell. You can simply quote the offending string, like this:

python youtube-dl.py -o "%(title)s-%(id)s.%(ext)s" --playlist-end=3 -t -c -a
@phihag phihag closed this Sep 21, 2011
@resnostyle
Copy link
Author

@resnostyle resnostyle commented Sep 22, 2011

Thank you. I couldnt figure out how to do that.

On Wed, Sep 21, 2011 at 1:53 PM, Philipp Hagemeister <
reply@reply.github.com>wrote:

In POSIX-compatible shells, braces induce a subshell. You can simply quote
the offending string, like this:

python youtube-dl.py -o ''%(title)s-%(id)s.%(ext)s" --playlist-end=3 -t
-c -a

Reply to this email directly or view it on GitHub:
#173 (comment)

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.