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

Specifying self-defined output file name using something like --batch-file #25468

Closed
QAQOAO opened this issue May 31, 2020 · 1 comment
Closed

Specifying self-defined output file name using something like --batch-file #25468

QAQOAO opened this issue May 31, 2020 · 1 comment

Comments

@QAQOAO
Copy link

@QAQOAO QAQOAO commented May 31, 2020

Checklist

  • [x ] I'm reporting a site feature request
  • [x ] I've verified that I'm running youtube-dl version 2020.05.29
  • [x ] I've searched the bugtracker for similar site feature requests including closed ones

Description

WRITE DESCRIPTION HERE

Hi, can youtube-dl support using own specifying output file name template like --batch-file?

--batch-file requires a text file listing URLs

so can we customize output file name the same way?

Something like -o filename.txt

where filename.txt is like the text file used behind the command--batch-file but change all URLs into respective self-defined output file name,

For example, let's say I want to download a youtube videos and I wish the filename is 'xx.mp4',

so I write one text file pasting its URL saving as batchfile.txt,

then I write another text file pasting xx.mp4, which is the file name I want youtube-dl to use,

after that, saving it as filename.txt

Finally, using youtube-dl -o filename.txt --batch-file batchfile.txt resulting my desired outcome..

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 31, 2020

Not possible. By design -o specifies an output template not a file with output templates.

@dstftw dstftw closed this May 31, 2020
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.