Quote:
Originally Posted by mgpai
Code:
/*
Randomize download order
Trigger: Download controller started
*/
var index, priorities = ["HIGHEST", "HIGHER", "HIGH", "DEFAULT", "LOW", "LOWER", "LOWEST"];
getAllDownloadLinks().forEach(function(link) {
if (!link.finshed) {
index = Math.floor(Math.random() * priorities.length);
link.priority = priorities[index];
}
})
|
Dear mgpai,
Could you please help modify this script to give HIGHEST priority for files smaller than 100MB (and if possible, give HIGHER priority for files size from 100MB to 1GB), then other files (bigger than 1GB) are random download order (random "HIGH", "DEFAULT", "LOW", "LOWER", "LOWEST" priorities).
I want Jdownloader to download small files such as ebooks and audio files first, then movie later. Downloading big file take long wait time, especially with free download, so it would be great to get the big files later when all other small files have been downloaded.
Thank you!