Quote:
Originally Posted by mgpai
Script Updated:
Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/patriks.js
|
mgpai/Jiaz thank you very much for help me with the scripts.
This script is exactly what I wanted, but when there are no links in linkgrabber it gives an error in this line:
Code:
// Move all links to download list
// Related Post: https://board.jdownloader.org/showpost.php?p=419538&postcount=364
moveAllToDownloadList();
// Function
function moveAllToDownloadList() {
callAPI("linkgrabberv2", "cleanup", [], [], "DELETE_DUPE", "REMOVE_LINKS_ONLY", "ALL");
getAllCrawledPackages().forEach(function(package) {
callAPI("linkgrabberv2", "moveToDownloadlist", [], [package.getUUID()]);
});
}
Code:
Caused by: org.appwork.remoteapi.exceptions.BadParameterException: BAD_PARAMETERS(ERROR_BAD_REQUEST)
at org.jdownloader.api.utils.PackageControllerUtils.cleanup(PackageControllerUtils.java:391)
at org.jdownloader.api.linkcollector.v2.LinkCollectorAPIImplV2.cleanup(LinkCollectorAPIImplV2.java:729)
I want to run this script with interval(30s). How to make it ignore the error message?
Quote:
Originally Posted by mgpai
Have you renamed "EventScripter Trigger" to "Export URLs"? The button name in context menu should be the same as the one used in script.
|
Now it works, thank you.