#1
|
|||
|
|||
Handling of special characters in file name
Whenever I download files from YouTube that contain special characters that is not supported by Windows they are replaced simply by "_"
I wanted to set custom rules such as removing : or replacing " with " (See example) In packagizer I can see an option for setting filenames that supports regex so does that mean I would have to use something like: (.*?)["_](.*) That seems a little tedious especially because the position of the " and _ aren't fixed. So I would have to create multiple packagizer. Tl;dr - Is there a simple way to swap out unsupported characters? |
#2
|
||||
|
||||
currently not possible, this is done at the core without user preferences. believe there is a svn issue ticket to create ability to define this, but thats as far as its gone.
it should be possible to rename parts of the core stuff with the event scripter, as you can use javascript to quickly replace chars vs reconstruct with the package customiser. raztoki
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] Last edited by raztoki; 16.11.2022 at 09:46. |
#3
|
||||
|
||||
Quote:
Other possible solutions would be: - You know the target-filename before and set it e.g. like this or: - You modify the filename from "outside" via myjdownloader API using external scripts
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#4
|
||||
|
||||
This feature has been finished and will be released with our next set of CORE-updates.
Preview of internal "changelog": - Advanced Setting GeneralSettings.cleanuppackagenames now only works for package names, not for filenames (that was confusing before) - Added new advanced setting GeneralSettings.filenamecharacterregexreplacemap -> This is used to replace characters which are not allowed in file-paths though you are free to use it for global custom replaces as well. This is an effort to prevent users from getting underscores in filenames/packagenames thus loosing information. - Added new advanced setting GeneralSettings.packagenamecharacterregexreplacemap which works similar to GeneralSettings.filenamecharacterregexreplacemap
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
Thread Tools | |
Display Modes | |
|
|