Quote:
Originally Posted by mgpai
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?