View Single Post
  #1421  
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