JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 20.11.2017, 00:49
heydoh heydoh is offline
Bandwidth Beast
 
Join Date: Dec 2016
Posts: 134
Default How to append something to just the front of a name of a file

When I select multiple files from different named packages:

Say:
Package1 has Hello.zip
Package2 has Goodbye.mp4

Say I want to append "abc_" to the beginning of the names of these files so it looks like abc_Hello.zip and abc_Goodbye.mp4

When I select both and hit the rename button it takes me to a rename link dialogue with just "$1" there. So I modify it to be "abc_$1".

Now, the outcome of my files has "abc_" at the beginning AND end of the file name. So the first file would be renamed "abc_Hello.zipabc_"

I'm not sure why it's appending the name to the end of the file as well. Is there a way so it appends "abc_" to JUST the beginning of the file name?
Reply With Quote
  #2  
Old 20.11.2017, 00:57
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

thanks for report,
confirmed, seems to be a bug. Jiaz should look into it today
__________________
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 20.11.2017, 18:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,519
Default

Fixed with next core update.
Search pattern must be
Code:
^(.*)
because
(.*) matches twice
first one matches on filename
second time on empty match because (.*) also matches on empty
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 21.11.2017, 03:48
heydoh heydoh is offline
Bandwidth Beast
 
Join Date: Dec 2016
Posts: 134
Default

Thanks all
Reply With Quote
  #5  
Old 21.11.2017, 09:47
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,519
Default

You're welcome
__________________
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 11: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.