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

How to NOT Remove Special Characters from Filenames #26824

Open
syberknight opened this issue Oct 6, 2020 · 1 comment
Open

How to NOT Remove Special Characters from Filenames #26824

syberknight opened this issue Oct 6, 2020 · 1 comment
Labels

Comments

@syberknight
Copy link

@syberknight syberknight commented Oct 6, 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

WRITE QUESTION HERE...

i'm using youtube-dl in the Terminal on a Mac (Catalina) to download all my videos from YouTube.

seems to be working fine, except...
for ? question marks, it removes them,
for " quotes, it changes them to apostrophes.

i get changing : colons to - dashes, but the rest of them, the Mac file system can totally handle.

so is there a way to make it keep these as-is?

note: i have NOT set the "--restrict-filenames" option.
note: it keeps ! exclamation points (yay!) and it keeps & ampersands (yay!).

and for reference, in case i'm doing something wrong, here is the line i'm putting in the Terminal to make this happen...
youtube-dl --ignore-errors --write-thumbnail -f '(bestvideo[width>=1920][ext=mp4])+bestaudio[ext=m4a]/best[ext=mp4]/best' -o '/Volumes/LaCie/DUMPSTER/%(upload_date)s %(title)s.%(ext)s' https://www.youtube.com/playlist?list=XXXXXXXXXXXXXXX

@syberknight syberknight added the question label Oct 6, 2020
@pukkandan
Copy link

@pukkandan pukkandan commented Oct 18, 2020

They are removed because other operating systems do not allow them. Afaik, there is no option in youtube-dl to change this behavior.

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.