JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #181  
Old 31.03.2021, 15:44
Dockel Dockel is offline
Black Hole
 
Join Date: Feb 2020
Posts: 288
Default

Thank goodness mgpai brought everything back to work in the chat.

And thank you also for your help!
__________________
Aktuelles Windows

Last edited by Dockel; 31.03.2021 at 15:47.
Reply With Quote
  #182  
Old 02.04.2021, 01:54
DragoBleaPiece DragoBleaPiece is offline
Baby Loader
 
Join Date: Jun 2020
Posts: 6
Default

could you plz update any new solution or script here?
Reply With Quote
  #183  
Old 22.04.2021, 18:46
Dockel Dockel is offline
Black Hole
 
Join Date: Feb 2020
Posts: 288
Default

After clicking "Move to history" this is shown:


Those error messages sometimes occur. Is there anything one could do to avoid them?
__________________
Aktuelles Windows
Reply With Quote
  #184  
Old 23.04.2021, 10:11
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,222
Default

@Dockel:
can you export all scripts and send them to support@jdownloader.org then I can check them and fix this issue. most likely there is access to non existing field/item
__________________
JD-Dev & Server-Admin
Reply With Quote
  #185  
Old 23.04.2021, 13:52
Dockel Dockel is offline
Black Hole
 
Join Date: Feb 2020
Posts: 288
Default

Yes, of course, thank you very much! Just done.
__________________
Aktuelles Windows
Reply With Quote
  #186  
Old 23.04.2021, 16:08
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,222
Default

Play a Sound(Wav), Interval, the script doesn't check if the link is still in list/available
Quote:
var extracting = false;
/*
================ Check if there are running extraction processes=====================
This Script es executed in an interval of 1 second (1000 ms) and will check
the current active state. If the state changes to false, it will play a wav file
=====================================================================================
*/


//use an API Call to get all Downloadlinks in your list
var links = callAPI("downloadsV2", "queryLinks", {
"name": true
});
//loop through all links
for (var i = 0; i < links.length; i++) {
//convert API Link to a Link Object
var link = getDownloadLinkByUUID(links[i].uuid);
if (link){
//check if the link is currently in extraction state
var isExtracting = link.getExtractionStatus() == "RUNNING";

if (isExtracting) {
//if it is, set variable and break the loop
extracting = true;
break;
}
}
}

// We are in active state, if the Download Controller is not idle and there is no extraction running
var active = !isDownloadControllerIdle() || extracting;
//check the active value we had in the last interval
var oldActive = getProperty("active", false) == true;
if (active != oldActive) {
//active state changed
//set new active state
setProperty("active", active, false);
if (!active) {
//we have been active in the last interval and are not active any more
playWavAudio(JD_HOME + "/themes/standard/org/jdownloader/sounds/captcha.wav");
}
}
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 23.04.2021 at 16:10.
Reply With Quote
  #187  
Old 23.04.2021, 19:33
Dockel Dockel is offline
Black Hole
 
Join Date: Feb 2020
Posts: 288
Default

Alright. I have replaced the old one. Thank you very much!
__________________
Aktuelles Windows
Reply With Quote
  #188  
Old 23.04.2021, 19:44
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,222
Default

You're welcome. In future the window will inform about what script/trigger is causing the issue
__________________
JD-Dev & Server-Admin
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 08:15.
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.