JDownloader Community - Appwork GmbH
 

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 19.06.2020, 22:51
OCHer OCHer is offline
Junior Loader
 
Join Date: Jan 2020
Posts: 12
Default

Quote:
Originally Posted by mgpai View Post
Code:
// Call external program
// Trigger: Archive extraction finished

disablePermissionChecks();

if (isDownloadControllerIdle() && !callAPI("extraction", "getQueue").length) callSync("synoindex", "-R", "video");

This should call the external program if no downloads are running and last archive file has been extracted. Install the script in JD with GUI and copy the JSON value from advanced settings.
Hi mgpai, I tried but unfortunately my Synology DiskStation does not execute the command "synoindex -R video".
I have set this in MyJDownloader EventScripter: Scripts:
Code:
[ {
  "eventTrigger" : "ON_ARCHIVE_EXTRACTED",
  "enabled" : true,
  "name" : "Synology Videoordner nach entpacken indizieren",
  "script" : "disablePermissionChecks();\n\nif (isDownloadControllerIdle() && !callAPI(\"extraction\", \"getQueue\").length) callSync(\"synoindex\", \"-R\", \"video\");",
  "eventTriggerSettings" : {
    "isSynchronous" : false
  },
  "id" : anonymus
} ]
Can you please take a look at what might be wrong?
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 01:02.
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.