JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 27.05.2023, 14:17
amcucchi amcucchi is offline
Junior Loader
 
Join Date: Oct 2020
Posts: 10
Question [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
Reply With Quote
  #2  
Old 27.05.2023, 16:05
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,602
Default

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
Reply With Quote
  #3  
Old 31.05.2023, 10:49
amcucchi amcucchi is offline
Junior Loader
 
Join Date: Oct 2020
Posts: 10
Question

Quote:
Originally Posted by raztoki View Post
be easier in event scripter as you can use the replace function in javascript kinda like your sed example. In **External links are only visible to Support Staff**... its not very friendly interface as it could be repeating in different locations and you have to listen and reconstruct in a static fashion.
Ok.

Can you help me to write the script?

_____________
Amcucchi
Reply With Quote
  #4  
Old 31.05.2023, 10:53
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 68,419
Default

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
__________________

On vacation / im Urlaub
START: 2023-09-26
END: TBA


JD Supporter, Plugin Dev. & Community Manager
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?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist

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 15:36.
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 - 2023, Jelsoft Enterprises Ltd.