View Single Post
  #74  
Old 01.12.2020, 11:30
Dockel Dockel is offline
JD Legend
 
Join Date: Feb 2020
Posts: 664
Default

Das müsste dieses hier sein:

Quote:
Link-Duplikate nicht laden 3 - If download link is present in history file, mark it as duplicate (add "#duplicatelink" to comment)
Code:
// 2020.07.09 : Linkgrabber Tab
// If download link is present in history file, mark it as duplicate (add "#duplicatelink" to comment)
// Trigger required: A new link has been added

if (link.host != "linkcrawlerretry") {
    var url = link.host == "youtube.com" ? link.getProperty("URL_CONTAINER") : link.URL,
        historyFile = getPath(JD_HOME + "/cfg/history.txt"),
        history = historyFile.exists() ? readFile(historyFile) : "";

    if (history.indexOf(url) > -1) {
        var text = "#duplicatelink"
        var comment = link.comment ? text + " " + comment : text;

        link.comment = comment;
        link.setEnabled(false);
        // Doppelte Links - schon runtergeladen
    }
}
Wohl meinte mgpai tatsächlich eben dieses Skript:

Quote:
@Jiaz: Since the "packagzier link' can already be accessed using "Packagizer Hook", would it be possible for the "A new link has been added" trigger to return "crawled link", instead of "packagizer link"? The workaround currently used in the script to get the crawled link in realtime, could also be causing high memory/cpu usage.
https://board.jdownloader.org/showpo...8&postcount=61
__________________
Aktuelles Windows

Last edited by Dockel; 01.12.2020 at 11:35.
Reply With Quote