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

Having no success at all with the -o command #3537

Closed
1235a opened this issue Aug 17, 2014 · 4 comments
Closed

Having no success at all with the -o command #3537

1235a opened this issue Aug 17, 2014 · 4 comments

Comments

@1235a
Copy link

@1235a 1235a commented Aug 17, 2014

I have tried using -simulate and --get-filename to no success with the youtube-dl.exe for windows 8.1. I have the latest version installed. Any format I try with -o or --output throws a variety of errors with batch files or multiple/single youtube links in the .bat file. I have seen it return just "ext" as the file name along with "error multiple links with the same name" and others. What is the proper verbose for:
-o /%(uploader)s/%(title)s:%(id)s.(ext)s
? I've tried many variations and none work.

@phihag
Copy link
Contributor

@phihag phihag commented Aug 17, 2014

Please post at least one variation in full, including the error you get. Note that the path should usually not start with / on Windows. Either start with the first path component (then it's local to the current directory), or with C:, or with \\. Additionally, I do believe that colons (:) are not allowed in Windows file names since they separate drive label and path.

@1235a
Copy link
Author

@1235a 1235a commented Aug 17, 2014

C:\Users\massi_000\Desktop\Wii\YouTube>youtube-dl --batch-file 1.txt -o "c:\YouT
ube(title)s-(ext)s" --dateafter 20140816 --no-playlist --ignore-errors --format
bestaudio --restrict-filenames
ERROR: fixed output name but more than one file to download

I see the problem, batch files can't use the '%' sign. if I copy and paste the code it works. Thanks for the other information though.

@phihag
Copy link
Contributor

@phihag phihag commented Aug 17, 2014

Batch files can include percent signs just fine, you just need to escape them.

@phihag phihag closed this Aug 17, 2014
@joshuafarren
Copy link

@joshuafarren joshuafarren commented Sep 11, 2018

@phihag That link doesn't work anymore.
For those coming from google (like me) escape percent signs in batch with another percent
i.e
%%(title)s

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
3 participants
You can’t perform that action at this time.