JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 26.04.2019, 11:26
chilibert chilibert is offline
Junior Loader
 
Join Date: Mar 2016
Posts: 12
Default rename serialize

I couldn't find a faq for the renaming options, so here's my question. I'm trying to rename files by serializing them. Example:
potato01.jpg
potato02.jpg
potato03.jpg
potato04.jpg
potato05.jpg
tomato01.png
tomato01.png
tomato01.png
tomato01.png
tomato01.png

To rename them to:
salad01.jpg
salad02.jpg
salad03.jpg
salad04.jpg
salad05.jpg
salad06.png
salad07.png
salad08.png
salad09.png
salad10.png

What would be put in the rename options instead of the default $1?

Thanks in advance for the help.
Reply With Quote
  #2  
Old 26.04.2019, 14:02
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,674
Default

automatically with package customiser rule, regular expressions are your friend.
else
select item and use the rename function, in which you can also use regular expressions and even preview function.

in respect to indexing there is a dynamic tag for memory but its not showing within the right click popups.... hmmm.

That said you need to know what you are going to name the outcome.

raztoki
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #3  
Old 26.04.2019, 14:14
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,301
Default

The dynamic tag is
Quote:
<jd:indexof>
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 26.04.2019, 17:10
chilibert chilibert is offline
Junior Loader
 
Join Date: Mar 2016
Posts: 12
Default

Quote:
Originally Posted by Jiaz View Post
The dynamic tag is
Thanks for that, but how to keep the extension? Instead of 001.jpg, 002.jpg I got 001, 002.
Reply With Quote
  #5  
Old 26.04.2019, 18:15
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,301
Default

Quote:
search: ^(.+)\.([^\.]+)$
replace: <jd:indexof>.$2
for example like this
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 26.04.2019, 22:51
chilibert chilibert is offline
Junior Loader
 
Join Date: Mar 2016
Posts: 12
Default

That's perfect! Thanks a bunch!
Reply With Quote
  #7  
Old 26.04.2019, 23:08
chilibert chilibert is offline
Junior Loader
 
Join Date: Mar 2016
Posts: 12
Default

Just one more thing.

When using those <jd:> commands, the preview doesn't resolve them:

Reply With Quote
  #8  
Old 29.04.2019, 14:56
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,301
Default

will be fixed with next core update
__________________
JD-Dev & Server-Admin
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 21:31.
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.