JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 15.06.2015, 19:32
Prouser
Guest
 
Posts: n/a
Default Event Scripter

Ich brauche eine Methode, um alle fertiggestellten Downloads zu bekommen.
Danke im Voraus.
Reply With Quote
  #2  
Old 16.06.2015, 12:11
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,981
Default

Dafür gibt es noch keine fertige Funktion. Du kannst allerdings über die API gehen.
Das umwandeln in einen downloadlink ist nur nötig, wenn die API Antwort nicht genug Infos hergibt.
Code:
//query the My.JDownloader API
var links = callAPI("downloadsV2", "queryLinks", {
    "name": true,
    "bytesLoaded": true,
    "eta": true,
    "extractionStatus": true,
    "running": true,
    "skipped": true,
    "speed": true,
    "status": true,
    "finished": true
});
for (var i = 0; i < links.length; i++) {
    var apiLinkObject = links[i];
    //link is a myjdownloader link object. Let's convert it
    var downloadLink = getDownloadLinkByUUID(apiLinkObject.uuid);
    if (downloadLink.isFinished()) {
    
        log(downloadLink);
       
    }

}
__________________
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 07:04.
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 - 2025, Jelsoft Enterprises Ltd.