Hello. I have a problem and didn't find the answer (search function in the forum is not very good).
I have two computers running Jdownloader2. They share the same folder for foderwatch. I would like that my second computer check that folder ONLY if the first computer is down.
So I check if the first is up with a ping : works well.
But I didn't found how to activate/deactivate folderwatch extension.
This is what I get with :
Code:
alert(callAPI("extensions","list",{ "configInterface" : true, "description" : true, "enabled" : true, "iconKey" : true, "installed" : true, "name" : true}))
Code:
{
"installed" : true,
"name" : "Scan de dossiers",
"description" : "Ajoutez des liens à JDownloader en placant des fichiers .crawljob dans un dossier spécifique sur votre disque dur.",
"iconKey" : "folder_add",
"id" : "org.jdownloader.extensions.folderwatchV2.FolderWatchExtension",
"configInterface" : "org.jdownloader.extensions.folderwatchV2.FolderWatchConfig",
"enabled" : true
},
This throws me an error :
Code:
alert(callAPI("config","get",{ "interfaceName" : "org.jdownloader.extensions.folderwatchV2.FolderWatchConfig", "storage" : "cfg/org.jdownloader.extensions.folderwatchV2.FolderWatchExtension", "key" : "Folders"}))
I tried that, but error too :
Code:
callAPI("extensions","setEnabled",{"classname":"org.jdownloader.extensions.folderwatchV2.FolderWatchConfig","b":false})
Code:
callAPI("extensions","setEnabled",{"classname":"org.jdownloader.extensions.folderwatchV2.FolderWatchExtension","b":false})
What I'm I missing ?
Waiting for an answer, I close JD when the first computer is up but it's not the solution I want :
Code:
callAPI("system", "exitJD")
Thanks !