JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 16.12.2019, 07:19
Leximator Leximator is offline
Modem User
 
Join Date: Feb 2016
Posts: 4
Default Ereignis Scripter Shutdown-Erweiterung einbinden

Hi,

ich versuche, die Shutdown-Erweiterung per Ereignis-Script zu deaktivieren. Folgende Zeile habe ich zusammengesucht:

callAPI("config", "set", "org.jdownloader.extensions.shutdown.ShutdownExtension.isShutdownActive", "false")

Sie funktioniert leider nicht.
Reply With Quote
  #2  
Old 16.12.2019, 07:39
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Code:
callAPI("extensions", "setEnabled", "org.jdownloader.extensions.shutdown.ShutdownExtension", false);
Reply With Quote
  #3  
Old 16.12.2019, 10:51
Leximator Leximator is offline
Modem User
 
Join Date: Feb 2016
Posts: 4
Default

Das deaktiviert die ganze Erweiterung, ich würde lieber den Wert "Shutdown: Shutdown Active" in den Profi-Einstellungen auf false setzen. Geht das auch?
Reply With Quote
  #4  
Old 16.12.2019, 11:53
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by Leximator View Post
Das deaktiviert die ganze Erweiterung, ich würde lieber den Wert "Shutdown: Shutdown Active" in den Profi-Einstellungen auf false setzen. Geht das auch?
Code:
// Deactivate shutodown extension

var interfaceName = "org.jdownloader.extensions.shutdown.ShutdownConfig";
var storage = "cfg/org.jdownloader.extensions.shutdown.ShutdownExtension";
var key = "ShutdownActive";
var value = callAPI("config", "get", interfaceName, storage, key);

if (value) callAPI("config", "set", interfaceName, storage, key, false);
Reply With Quote
Reply

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 02:13.
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.