JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 16.11.2022, 07:07
kanishknishar kanishknishar is offline
Super Loader
 
Join Date: Aug 2018
Posts: 29
Default 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?
Reply With Quote
  #2  
Old 16.11.2022, 09:43
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

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.
Reply With Quote
  #3  
Old 16.11.2022, 12:23
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

Quote:
Originally Posted by raztoki View Post
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.
Yap at this moment this is the best solution.
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
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #4  
Old 12.03.2024, 12:24
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

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
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 03:38.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.