JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 07.04.2018, 22:12
YenForYang
Guest
 
Posts: n/a
Question Where can I find a comprehensive list and description of the "dynamic variables"?

That is, the ones that begin with "<jd:"...

The ones directly usable through the UI in JDownloader include orgfilename, orgfiletype, simpledate, orgpackagename, packagename, etc.

I've looked through PackagizerController.java in the source and it should have them all (I guess?) but I'm having trouble figuring out everything and what each one does.

For example, what are these (I think they exist?): append, env, hoster, source, indexof, subfolderbyplugin, orgfilenamewithoutext, prop. How do I use these and what do they do--(orgfilenamewithoutext is self-explanatory, I know)?. There are probably others I've missed (and I am certainly not sure how to use them). A reference/guide would be REALLY helpful


EDIT: Figured out append - it just allows you to tack on additional text to the result of the previous rule(s) (right?)

Last edited by YenForYang; 07.04.2018 at 22:50.
Reply With Quote
  #2  
Old 10.04.2018, 11:50
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

I just took a quick look at the source and here are those I could find.

<jd:append>
-> this placeholder will be replaced by previous value where the placeholder is being used in

<jd:prop:KEY>
-> this placeholder reads out an internal property of the downloadlink itself. properties are plugin specific and there are plans that plugins can return a list of supported properties that can be used here

<jd:indexof>
-> this placeholder will be replaced by number of index of the downloadlink within its package. first link will be 1, second link will be 2 and so on. It's just the index within the package!
-> will be replaced in real time

<jd:subfolderbyplugin>
-> some plugins support recursive folder support. if supported by plugin, then the downloads will have same directory structure like shown in browser

<jd:env:KEY>
-> this placeholder will be replaced by KEY environment variable of your system
-> will be replaced in real time

<jd:orgfilename> <jd:orgfilename:number>
-> this placeholder will be replaced by original filename or matching group(number) of filename pattern

<jd:packagename>
-> this placeholder will be replaced by the current package name
-> will be replaced in real time

<jd:orgfiletype> <jd:orgfiletype:Pattern>
-> this placeholder will be replaced by the file extension of the file or the match of the given pattern

<jd:orgfilenamewithoutext>
-> this placeholder will be replaced by original filename without file extension

<jd:hoster:number>
-> this placeholder will be replaced by the matching group(number) of downloadurl pattern or the host itself if number is -1

<jd:source:(number)pattern>
-> this placeholder will be replaced by the match of sourceurl pattern. with number you can specify which sourceurl to process

<jd:simpledate:simpleDateFormatString>
-> this placeholder will be replaced by time formatted with simpleDateFormatString, see docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
-> will be replaced in real time

<jd:orgpackagename>
-> this placeholder will be replaced by the original package name
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 21.10.2019, 18:20
Coldblackice Coldblackice is offline
Wind Gust
 
Join Date: Sep 2019
Location: San Francisco
Posts: 40
Default

Jiaz, thanks for these. Is there a way to have part of the file's URL appended as part of the filename? For example, if there are a list of files such as:

http: //example.com/b01/picture.jpg
http: //example.com/b02/picture.jpg
http: //example.com/b03/picture.jpg

Is there a way to have the files auto-named like:

picture_b01.jpg
picture_b02.jpg
picture_b03.jpg

...? TIA
Reply With Quote
  #4  
Old 24.10.2019, 03:40
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

sure, package customiser rule, gives you the flexibility to parse components of urls or access filenames derived from linkchecking results. the latter would work
Code:
<jd:orgfilenamewithoutext>_<jd:indexof><jd:orgfiletype>
and if you need to listen based on jd:source / sourceurl you can (incase the website has different header filename from url) url you would need to listen to (filename) component and (file extension) and construct it again with <jd:indexof> source and its indexes from jd:source
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #5  
Old 15.03.2020, 16:17
XtremeMaC XtremeMaC is offline
Vacuum Cleaner
 
Join Date: Nov 2009
Location: USA
Posts: 18
Default

Sorry to revive a slightly old topic. but it's related
In the packagizer there is a "comment" section.
I'd like to append the "comment" from the grabbed url, in this case instagram to the filename.

in this case it'd be: jd:orgfilenamewithoutext - <jd:comments???> jd:orgfiletype

what is the dynamic variable for comments?
Reply With Quote
  #6  
Old 16.03.2020, 11:53
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,919
Default

There is none for that.
You can see available variables by doing a rightclick in any field in the packagizer.
You may be able to accomplish what you want to do using an EventScripter script.

-psp-
__________________
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
  #7  
Old 16.03.2020, 14:17
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

maybe better off using the info file script? tags can place filenames over x chars long which can cause issues. else consider using meta data.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #8  
Old 16.03.2020, 15:30
XtremeMaC XtremeMaC is offline
Vacuum Cleaner
 
Join Date: Nov 2009
Location: USA
Posts: 18
Default

Thanks! I'll try both and see if I can work it out.
Reply With Quote
  #9  
Old 12.09.2021, 03:52
retlaw retlaw is offline
Modem User
 
Join Date: Sep 2019
Posts: 2
Default

Hello,

is there a way to use the current date / time for the extracting directory.
If I have created a download list long time ago that ist still downloading, I have to remember the download place.

Kind regards,

Mario
Reply With Quote
  #10  
Old 12.09.2021, 06:51
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Code:
Settings > Archive Extractor > Extract to (Right-click in the field to add date/time)
Reply With Quote
  #11  
Old 13.09.2021, 19:56
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

@retlaw: I'm sorry but what does date have to do with *remember the download place* ?
Maybe you are looking for something different/better?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 14.09.2021, 00:34
retlaw retlaw is offline
Modem User
 
Join Date: Sep 2019
Posts: 2
Default

I have the following settings:

Default Download Folder
/JD/<jd:simpledate:yyyy.MM.dd>/<jd:packagename>

Extraction: Custom Extraction Path
/JD/<jd:simpledate:yyyy.MM.dd>/<jd:packagename>

Files added on September, 1 2021 will download in
/JD/2021.09.01/xxxxxxx

also extraction will take place within this folder.

If extraction is executed today, I would like to extract to
/JD/2021.09.13/xxxxxxx

so setting (if possible) could look like
/JD/<jd:extractiontime:yyyy.MM.ddY/<jd:packagename>

regards,

Mario
Reply With Quote
  #13  
Old 14.09.2021, 12:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

@retlaw: Thanks for the feedback.
Quote:
/JD/<jd:simpledate:yyyy.MM.dd>/<jd:packagename>
for custom extraction path should work just fine.
Just tested and working fine here
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 14.09.2021 at 12:24.
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:35.
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.