#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
|
|||
|
|||
How to build an interactive script?
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 |
#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
|
|||
|
|||
Several questions
Hi there Pls excuse me but i got some questions where this thread and the script-editor help-page didnt helped me out :(
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 16: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 Thank you
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 I will find a way 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 14: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 12: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 13: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 20:34. |
#261
|
||||
|
||||
Please provide a logfile https://support.jdownloader.org/Know...d-session-logs
and post shown logID here Also create some screenshots that show the eventscripter settings and script Make sure the destination folder exists!
__________________
JD-Dev & Server-Admin |
#262
|
|||
|
|||
Quote:
I inserted in the script a different folder from c:/myFolder/movedFiles can I change this folder? Last edited by donnje; 20.12.2017 at 10:07. |
#263
|
||||
|
||||
You've got to create the folder first. It must exist!
Thanks for the feedback!
__________________
JD-Dev & Server-Admin |
#264
|
|||
|
|||
Thanks for all
|
#266
|
|||
|
|||
Hi all...
I'm looking for a script that:
Any help is welcome and really appreciated. Merry X-Mas/Happy New Year and thanks in advance! Cheers, flow |
#267
|
|||
|
|||
Quote:
Well I am using free proxies for downloading and I just wanted to automaticly remove all crappy ones (not online, low speed, auth required, ...). That's why I was searching how to manage custom proxy list via event scripter. Everything else (the stop mark thingy) is working fine now. Thx Best wishes Agi |
#268
|
||||
|
||||
@Agita: you can access proxy list via Advanced Settings API and InternetConnectionSettings.customproxylist
Better ask mgpai for help how to read/set this config value
__________________
JD-Dev & Server-Admin |
#269
|
|||
|
|||
please delete or ignore
Last edited by plaintext; 22.01.2018 at 13:37. |
#270
|
||||
|
||||
@plaintext: not possible (yet)
__________________
JD-Dev & Server-Admin |
#271
|
|||
|
|||
Hi guys, have been looking into automating the JDownloader process but unfortunately ran into problems solving that.
I would need a Script which would grab the extracted folder or and file(s) and move them to a specific directory after extraction. What @donnje is looking for actually sounds the same what I've been looking for. Would that be possible? Any hint would be appreciated! Thanks a lot for your great effort! €dit: This seems also similar to what I am looking for, right?: https://board.jdownloader.org/showpo...&postcount=159 Last edited by neik; 29.01.2018 at 17:52. |
#272
|
|||
|
|||
Available methods/help can be found in the the built-in script editor. If you need further help with your script, feel free to post it here.
'Packagizer' has an option to rename/move files after extraction. Tried it? |
#273
|
|||
|
|||
Can I please request a script for Mega.co.nz? Mega decrypts the file after a download finishes. I'd like a script that can start the next download while jdownloader is still decrypting the last file downloaded from mega. I hope you can help me.
|
#274
|
||||
|
||||
@Buggys
not possible if its core controlled which it is in this case.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#275
|
|||
|
|||
Quote:
I found that option within the JD GUI of Windows too but unfortunately on my headless Linux machine I do not find that option in the MyJDownloader GUI. I was even able to export on packagizer file from the Windows installation but I do not know how to activate it in the headless machine. Any hints? |
#276
|
|||
|
|||
Script for Unrar soft selection
Hello everyone
(I'm a French guy, so sorry for my grammar) I would like to know if you had a script to call WinRAR (v5.50 in Windows 10 x64) instead of 7Zip, for the automatic decompression of downloaded archives, (with deletion of archives when the extraction and realized successfully); It's possible? or not? because I find WinRAR much more powerful in terms of extraction stability, and it manages the RAR5 wonderfully. (normal will you say), Thank you in advance for your help and thank you for supporting this amazing program. Thanks again. From France with love Last edited by Mohadib; 01.02.2018 at 11:11. |
#277
|
|||
|
|||
Quote:
|
#278
|
|||
|
|||
Hi HFS8cxqkzepybKtyG4dV;
Thank you for taking the time to respond. I thought about it, but the observation that I made and that winRAR decompresses archives much faster than 7zip (at least 50% faster) e.g: to decompressed a folder (BDMV folder) of about 40 GiB it takes ~ 50mn to 7Zip with my n3150 (Celeron @ 4*1.6GHz) and 25mn with winRAR; In addition, without criticism 7Zip (which is very good, and free) WinRAR has always been my favorite, for reasons of stability among others. But of course, if it is not possible to do differently, I accept this method, but the RAR5 support was not my priority on this request. Thanks again. From France with love. Edit: After testing the 7Zip lib in beta HFS8cxqkzepybKtyG4dV give me, its speed at extraction is comparable to WinRar, so in the end, my request does not place to be. Thank you for the patience, and for the work. Last edited by Mohadib; 03.02.2018 at 10:36. Reason: add comment after test Beta lib of 7Zip |
#279
|
||||
|
||||
@Mohadib: the old (current) extraction library had severe speed issues for 7zip archives. Those were fixed in newer versions of the library and as the library uses the same extraction source as 7zip/winrar, it should be about the same speed.
Thanks for the feedback!
__________________
JD-Dev & Server-Admin |
#280
|
||||
|
||||
@neik: you can copy/paste Settings-Advanced Settings, PackagizerSettings.rulelist
For eventscripter, EventScripter.scripts
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|