syntax error -o #130

Closed
opened 2026-02-20 21:03:14 -05:00 by deekerman · 2 comments
Owner

Originally created by @resnostyle on GitHub (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?

Originally created by @resnostyle on GitHub (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?
Author
Owner

@phihag commented on GitHub (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 commented on GitHub (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 ```
Author
Owner

@resnostyle commented on GitHub (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:
https://github.com/rg3/youtube-dl/issues/173#issuecomment-2158863

@resnostyle commented on GitHub (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: > https://github.com/rg3/youtube-dl/issues/173#issuecomment-2158863
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#130
No description provided.