JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 28.07.2020, 21:24
ominus ominus is offline
JD Alpha
 
Join Date: Jun 2012
Posts: 22
Default How to edit the value of a dynamic variable?

Hello.

The Twitch plugin creates a filename with the date/time in front of it.
There is no way to edit the *videoname* tag in the plugin itself which creates the filename, so the date/time will always appear.

My question is can I edit the <jd:orgfilename> variable, which is the filename which the plugin gives, remove the first 10 digits which is the time/date and use the new value as the filename?

To my understanding, the regex rules applys only for the matching conditions and the rename function is only for the extracted files.

So is there a way to process the values of the dynamic variables or not?

UPDATE

ok, I figured it out.
in the packagizer in Conditions, you select Filename Contains, you add in the input field: .....................(.+) and enable regex
each dot corresponds to a single character, so the 15 dots remove the first 15 characters of the filename, in this case the full date/time

in Then Set, you select Filename, and add <jd:orgfilename:1>
voila

Last edited by ominus; 28.07.2020 at 21:59.
Reply With Quote
  #2  
Old 29.07.2020, 04:40
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

good to see that you figured out a solution
in respects to your regex pattern you can simplify .{15} as a repeat function, bit easier to read/admin
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
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 08:33.
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.