JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 03.05.2022, 04:02
I3ordo I3ordo is offline
Mega Loader
 
Join Date: Mar 2022
Posts: 65
Default removing everything until underscope with packagizer?

Hi!

i am trying the packagizer and do an auto-renaming based on download url.

Am able to use regex with the find replace replace , result is good.
this removes everything including the underscope and keeps the rest

but cant make it work here:

am i too far off the right track?

images are working fine when previewing the message so i am guessing only visible to moderators ...

Last edited by I3ordo; 03.05.2022 at 04:05.
Reply With Quote
  #2  
Old 03.05.2022, 16:17
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,522
Default

@I3ordo: rename doesn't work that way as you do not specify the *search for* but the *replace with/rename to*
Best would be to provide example links and then we can better help/provide regex/rules

Quote:
Originally Posted by I3ordo View Post
images are working fine when previewing the message so i am guessing only visible to moderators ...
correct
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 04.05.2022, 04:55
I3ordo I3ordo is offline
Mega Loader
 
Join Date: Mar 2022
Posts: 65
Default

for example this link:
**External links are only visible to Support Staff****External links are only visible to Support Staff**

it brings three items, one archive two images...

i am trying to do
Code:
^(.*?\_)
on the image files (remove everything until the first underscore (including the underscore) so that the downloaded result would be , archive file and a image file with same exact names...
So i checked the packagizer and it has a function that renames on conditions met, but it works like rename the file to <jd:orgpackagename>, it does not seem to provide a regex find replace function. or maybe it does and i just dont know it yet.
Reply With Quote
  #4  
Old 04.05.2022, 10:16
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,522
Default

Quote:
Originally Posted by I3ordo View Post
So i checked the packagizer and it has a function that renames on conditions met, but it works like rename the file to <jd:orgpackagename>, it does not seem to provide a regex find replace function. or maybe it does and i just dont know it yet.
Quote:
Originally Posted by Jiaz View Post
@I3ordo: rename doesn't work that way as you do not specify the *search for* but the *replace with/rename to*
the *rename* is only for extracted files and you have to specify the destination *replace with/rename to* name!
In order to rename files you have to use "...then set....Filename" and specify the filename
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 04.05.2022, 10:19
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,522
Default

Example rule to cut of leading XYZ_
Quote:
File Name - contains - ^(.*?_)(.+)
enable regex on right side
...then set
Filename - <jd:orgfilename:2>

__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 05.05.2022, 02:56
I3ordo I3ordo is offline
Mega Loader
 
Join Date: Mar 2022
Posts: 65
Default

hi! i was able to achieve what you described and i even could accomplish it with files like "xyz.13.12.2022.somefile.rar"

filename contains: ^(.*?.)(\d.).\d..\d..(.+) (regex on)
filename:<jd:orgfilename:3>

the resulting filename becomes "somefile.rar"
thank you very much:)
Reply With Quote
  #7  
Old 05.05.2022, 09:17
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 17:06.
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.