Quote:
Originally Posted by woriamu
... I have hundreds of 0 byte links scattered across thousands of downloads among hundreds of packages ...
|
Note: This script will delete links from the download list. Keep a backup of link list before running the script.
Code:
// Reset finished link, if size is zero bytes
// Trigger: JDownloader Started
getAllDownloadLinks().forEach(function(link) {
if (link.finished && !link.bytesTotal) {
link.reset();
}
})
Unlike the other script which queries a single link, this queries all links, which will use more system resources each time it is executed, especially if you lot of links in the list. So disable it once the existing links in the list are reset.