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

Is it possible to use just a portion of the {title}-string for file naming in the output template? #16521

Closed
3f8wohoo opened this issue May 22, 2018 · 1 comment
Labels

Comments

@3f8wohoo
Copy link

@3f8wohoo 3f8wohoo commented May 22, 2018

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.05.18. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.05.18

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Description of your issue, suggested solution and other information

Hi,

I want to separate my downloads into subfolders named by a portion of the {title}-string.
So downloading a video like John Doe - Classic Song will result in

/John Doe/John Doe - Classic Song.mp3

Is it currently possible to archive this with just using the output template? What shall I do with the {title}-var to truncate it until it reaches the -?

Afaik the python string formatting options can't be used to pass a regex to the output format (using -o).

Thanks in advance!

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 22, 2018

Not possible.

@dstftw dstftw closed this May 22, 2018
@dstftw dstftw added the question label May 22, 2018
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.