JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 09.12.2024, 18:38
FBD's Avatar
FBD FBD is offline
Giga Loader
 
Join Date: Nov 2018
Location: https://web.libera.chat/#jDownloader
Posts: 96
Post Stop downloads during extraction

This script stops the download process when extraction is running. Use if you only have resumable downloads or don't care about downloads restarting.

Triggered with "Any Extraction Event" trigger

Spoiler:
Code:
/* 
    Stop downloads during extraction (fbd)
    Trigger Required: Any Extraction Event
*/

if (isDownloadControllerRunning() && event == "EXTRACTING") {
    // Extraction starting and download runnning
    stopDownloads();

} else if (!isDownloadControllerRunning() && event == "CLEANUP") {
    // Restart downloads
    startDownloads();
}
Direct download: raw.githubusercontent.com/FarBeyondDriven/JDscripts/refs/heads/main/PauseDownloadsDuringExtraction.js

__________________
irc.libera.chat #jDownloader web.libera.chat/#jDownloader

Last edited by FBD; 09.12.2024 at 18:40. Reason: direct link
Reply With Quote
  #2  
Old 09.12.2024, 18:45
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,753
Default

Quick idea now that I see this:
This is to lower the IO load on the download-drive during extraction, am I right?
If so, wouldn't pausing the downloads (= speed-limit) have the same effect with the benefit that non-resumable downloads would not be interrupted?
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?

Last edited by pspzockerscene; 10.01.2025 at 14:01. Reason: Fixed two typos
Reply With Quote
  #3  
Old 10.12.2024, 00:40
FBD's Avatar
FBD FBD is offline
Giga Loader
 
Join Date: Nov 2018
Location: https://web.libera.chat/#jDownloader
Posts: 96
Default

Quote:
Originally Posted by pspzockerscene View Post
Qucik idea now that I see this:
This is to loawer the IO load on the download-drive during extraction, am I right?
Yeah, that's the idea, especially if it's a NAS or embedded device. Indeed pausing would be better if there are non-resumable downloads (the script can be easily adapted to do that). The user who requested this script didn't want *any* download activity, hence it's stopping all downloads and he was only downloading with premium account so he didn't care about stop/resume.
__________________
irc.libera.chat #jDownloader web.libera.chat/#jDownloader
Reply With Quote
  #4  
Old 10.12.2024, 10:50
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,753
Default

Yeah no worries.
I don't need it either but I guess my comment here might be enough to possibly inspire other users who stumble across this thread.
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #5  
Old 10.12.2024, 13:12
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,648
Default

@FBD: instead of stop/start, why not pause or set/disable speed limit. then downloads will continue but at slow speed -> slow IO load
__________________
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 16:52.
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.