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

Addition of Filename format toggle for "--restrict-filenames" youtube-dl flag #536

Open
Coding-Sock opened this issue Aug 7, 2024 · 0 comments
Labels
feature request New major feature request

Comments

@Coding-Sock
Copy link

Is your feature request related to a problem? Please describe.
On Windows, when downloading a video with standard filename option using %(title), you can often pick up special characters in the filenames that cause problems processing the video and causing failures.

Describe the solution you'd like
Youtube-dl has a solution for this

In some cases, you don't want special characters such as 中, spaces, or &, such as when transferring the downloaded filename to a Windows system or the filename through an 8bit-unsafe channel. In these cases, add the --restrict-filenames flag to get a shorter title.

However if you try to add the flag --restrict-filenames to the Filename format: Custom field it will only literally apply that string to the filename rather than process it as an option.

If a radio button could be added to toggle --restrict-filenames on and off similar to the other buttons (Save metadata, Keep unmerged files, etc), that would allow for Windows users to easily avoid the special character risk when downloading videos.

Describe alternatives you've considered
I've considered removing using titles from the filename format using custom and adding them back manually to the finished files, but that is a tedious process. I've also tried putting the option into the Custom field but as mentioned, it just literally applies the flag to the filename rather than processing it separately.

Additional context

@Coding-Sock Coding-Sock added the feature request New major feature request label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New major feature request
Projects
None yet
Development

No branches or pull requests

1 participant