JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 31.01.2023, 14:09
cstern cstern is offline
Mega Loader
 
Join Date: Jul 2012
Location: Denmark
Posts: 61
Default Renaming download package name (regex, Packagizer)

I want to rename the downloaded package from "text1 - text2- text3" (where textx can be any string) to "text1 - text3 - text2".

The regex for the matching string should be
"(\w+)\s+-\s+(\w+)\s+-\s+(\w+)"

and the rename should then be
"$1 - $3 - $2"

I tried to set this up in packagizer as shown in the attached screendump. I obvioulsy did something wrong. Can you please help me?

Thanks in advance

(sorry for the spelling error in the subject line - I cannot correct it after posting - should of course be "Renaming" not "Reniming"....)
Attached Thumbnails
Screendump 2023-01-31 kl. 13.57.jpg  

Last edited by cstern; 31.01.2023 at 14:12.
Reply With Quote
  #2  
Old 31.01.2023, 15:38
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,088
Default

Hi again,
short answer: You're doing it wrong!

While the "$number" format is widely used, it is impossible to use this here as the rule also needs to know where to get the data from (you can also use RegEx in source URL and other fields...).
So here are two things to check/fix:
1. Is the RegEx checkbox to the right of the "Package name" source enabled (exactly that is not visible in your screenshot)?
2. Instead of the "dollarNumber" format then use what we also described in our help articles:
https://support.jdownloader.org/Know...the-packagizer
and:
https://support.jdownloader.org/Know...ame-via-anchor
You probably don't want to type all of that by hand so:
--> Rightclick in the "then set...Packagename" field -> Danymic variables -> Package name wildcard [1-X]
__________________
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?

Last edited by pspzockerscene; 31.01.2023 at 15:38. Reason: Fixed some typos
Reply With Quote
  #3  
Old 31.01.2023, 15:46
cstern cstern is offline
Mega Loader
 
Join Date: Jul 2012
Location: Denmark
Posts: 61
Default

Great! It works!
The dialog box was too narrow and I only saw the check box after pulling the dialog wider.
And the hint about right click also was a great tip.

Thanks again.
Reply With Quote
  #4  
Old 31.01.2023, 15:49
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,088
Default

Thanks for your feedback.
__________________
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 16:57.
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.