#1
|
|||
|
|||
[EventScripter ]Rename filename single character
How I can write a packagizer rule to rename all file I download that contains the character _ with character . ?
Example : I want to automatically rename this I_Hate_Suzie_2021_1x01.mp4 in this I.Hate.Suzie.2021.1x01.mp4 I tried to do a packagizer rule that for every file that contains * in the name rename it in (I tried to write a regex formula similar to sed) /_/\./ but it not work. Can you help me? _____________ Amcucchi Last edited by amcucchi; 27.05.2023 at 14:18. Reason: I forget to sign |
#2
|
||||
|
||||
be easier in event scripter as you can use the replace function in javascript kinda like your sed example. In package customiser its not very friendly interface as it could be repeating in different locations and you have to listen and reconstruct in a static fashion.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] Last edited by pspzockerscene; 30.05.2023 at 15:23. Reason: Added hyperlink to knowledgebase article |
#3
|
|||
|
|||
Quote:
Can you help me to write the script? _____________ Amcucchi |
#4
|
||||
|
||||
Please use the EventScripter thread to ask for help with EventScripter scripts and to find existing examples:
EventScripter forum thread: https://board.jdownloader.org/showthread.php?t=70525 EventScripter help article: https://support.jdownloader.org/Know...event-scripter
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
Thread Tools | |
Display Modes | |
|
|