#241
|
|||
|
|||
![]()
@MaybeGrimm: It is possible to add metadata to a file, using the script, as long as the external program and the target file supports it. The script just passes the relevant variables to the external program. If you want to use 'exiftool', make sure you are able to add the metadata manually via CLI. Then, in the script, modify the path to 'exiftool' and the 'parameters' if necessary.
|
#242
|
|||
|
|||
![]() Quote:
It's impossible to make it work with another program, right? I that case, I could use a single info-file :/ Sorry for the trouble. |
#243
|
|||
|
|||
![]()
Contact me in JD Chat. I can try to help you troubleshoot.
|
#244
|
|||
|
|||
![]() Quote:
Quote:
Ok, the date picker is nice, but separate inputs will also be fine. But this brings me to my next question: How to render a self-composed input-dialog-UI with a bunch of canvas elements (label, input-fields, buttons) in the jd-desktop-GUI environment? thx
__________________
Sys-Info: Win10Home32bit | NTFS | OracleJRE1.8 | JD2 with GUI |
#245
|
||||
|
||||
![]()
That is not possible and I don't think that we will add support such feature in near future/at all. The moment that kind of gui is required, I think it makes more sense to code it outside of JDownloader and communicate via API with JDownloader
__________________
JD-Dev & Server-Admin |
#246
|
|||
|
|||
![]()
Hi there
![]() 1) Is it possible to handle the proxy list (instead of just accessing the environment variable)? 2) is there a function for links like mylink.hasStopMark() ? 3) is there a way to get proxy address of a link? 4) how to execute a scipt just once (if i wanna create an infinite while(true)-loop) would setting "interval = 99999999....." do the job? 5) about the status string of the links (mylink.getStatus()) ... they are all localized. so I have to define a config var at the top of the script like this? Code:
cfgstr.waitingNoConnection = "Keine Internetverbindung?"; ... if(link.getStatus() == cfgstr.waitingNoConnection) { ... Many many thanks in advance ![]() ----------------------------------------------------------------------------------- UPDATE: Ok, I managed to create my own solution for the link status problem ![]() But for the other of my points I didnt find any workaround yet :/ Last edited by Agita; 10.12.2017 at 17:57. |
#247
|
|||
|
|||
![]()
API call can be used to get the stopmarkedlink, which can then be compared with 'mylink.'
Code:
var stopMarkedLink = callAPI("downloadsV2", "getStopMarkedLink"); Quote:
|
#248
|
|||
|
|||
![]()
That stopMarkedLink-Thingy is neat
![]() Well, the trigger "Jdownloader started" just gets called right after JD started and not when it has been started already and the script is beeing configured and saved.. But never mind ![]() ![]() And for the getStatus() behaviour I added an attachement with my solution and onetwo other things, if someone needs it ![]() EDIT 2020-05-18 by pspzockerscene: Public download URL because forum attachments can only be accessed by mods: workupload.com/file/bGhNgc9txfP Last edited by pspzockerscene; 18.05.2020 at 15:37. |
#249
|
||||
|
||||
![]()
@Agita: What are you trying to achieve? Then we can provide more information/help better
__________________
JD-Dev & Server-Admin |
#250
|
|||
|
|||
![]() Quote:
If I make a script test I have this error RefereceError: "link" is not defined. (#6) where am I wrong? |
#251
|
||||
|
||||
![]()
@donnje: What trigger did you use? Please be aware that it depends on the set trigger what objects you can access
__________________
JD-Dev & Server-Admin |
#252
|
|||
|
|||
![]() Quote:
i put a none trigger can you explain to me how I can do, please? |
#253
|
||||
|
||||
![]()
Script will only work with a trigget that provides a link object. See the comment in script *Trigger required: "A Download Stopped"
__________________
JD-Dev & Server-Admin |
#254
|
|||
|
|||
![]() Quote:
![]() sorry maybe Am 'I wrong script ? I want the finished downloads to be moved to a dedicated folder Last edited by donnje; 19.12.2017 at 13:42. |
#255
|
||||
|
||||
![]()
Can you please show the complete script?
__________________
JD-Dev & Server-Admin |
#256
|
|||
|
|||
![]()
I put
// Move finished non-archive files, to user defined folder // Trigger required: "A Download Stopped" var destFolder = "c:/myFolder/movedFiles"; // <- Set destination folder. if (link.isFinished() && !link.getArchive()) { getPath(link.getDownloadPath()).moveTo(destFolder); } Last edited by donnje; 19.12.2017 at 14:26. |
#257
|
||||
|
||||
![]()
the script does not move archive parts, you know that?
__________________
JD-Dev & Server-Admin |
#258
|
|||
|
|||
![]()
tnx for your patience
I don't understand I would like to move the files I have completed to download to a specific folder, is it posible? |
#259
|
||||
|
||||
![]()
yes, but the script does only move *non archive files*. Archive files are not moved to not break extraction
__________________
JD-Dev & Server-Admin |
#260
|
|||
|
|||
![]()
my file is "no archive file" :(
Last edited by donnje; 19.12.2017 at 21:34. |
![]() |
Thread Tools | |
Display Modes | |
|
|