#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
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 |
#4
|
||||
|
||||
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>
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#5
|
|||
|
|||
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? |
#6
|
||||
|
||||
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 |
#7
|
||||
|
||||
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. :] |
#8
|
|||
|
|||
Thanks! I'll try both and see if I can work it out.
|
#9
|
|||
|
|||
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 |
#10
|
|||
|
|||
Code:
Settings > Archive Extractor > Extract to (Right-click in the field to add date/time) |
#11
|
||||
|
||||
@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 |
#12
|
|||
|
|||
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 |
#13
|
||||
|
||||
@retlaw: Thanks for the feedback.
Quote:
Just tested and working fine here
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 14.09.2021 at 12:24. |
Thread Tools | |
Display Modes | |
|
|