JDownloader Community - Appwork GmbH
 

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 23.11.2017, 15:30
crashme crashme is offline
Modem User
 
Join Date: Nov 2017
Posts: 3
Default Getters on archive return null in EventScripter

Hi guys,

I recently discovered the EventScripter feature of JDownloader. However the following code fails, archive is undefined and as a result, all getters just return null.

Code:
var paths = archive.getExtractedFilePaths();
if (paths !== null)
    writeFile(JD_HOME + "/log.txt", JSON.stringify(paths), false);
Any help? The script itself should be configured correctly, trigger is "ON_ARCHIVE_EXTRACTED".

Kind regards
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 15:59.
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 - 2021, Jelsoft Enterprises Ltd.