JDownloader Community - Appwork GmbH

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


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?


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>

Last edited by ominus; 28.07.2020 at 20:59.
Reply With Quote
Old 29.07.2020, 03:40
raztoki's Avatar
raztoki raztoki is offline
English Supporter
Join Date: Apr 2010
Location: Australia
Posts: 17,284

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

Don't fight the system, use it to your advantage. :]
Reply With Quote

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 06:39.
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 - 2021, Jelsoft Enterprises Ltd.