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

remove special characters from title when saving file #25287

Closed
400thecat opened this issue May 15, 2020 · 1 comment
Closed

remove special characters from title when saving file #25287

400thecat opened this issue May 15, 2020 · 1 comment
Labels

Comments

@400thecat
Copy link

@400thecat 400thecat commented May 15, 2020

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

I have an alias, something like this:

youtube-dl --no-check-certificate -o "/mnt/media/download/$(date +%Y-%m-%d)__%(title)s-%(id)s.%(ext)s"

it works well, but the title usually contains unsafe characters, spaces, non-asci, and so on.

Is there a way to define some kind substitution, such as spaces are automatically converted into underscores and special characters removed ?

@400thecat 400thecat added the question label May 15, 2020
@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 15, 2020

--restrict-filenames             Restrict filenames to only ASCII
                                 characters, and avoid "&" and spaces in
                                 filenames
@dstftw dstftw closed this May 15, 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.