View Single Post
  #96  
Old 03.12.2020, 15:19
Dockel Dockel is offline
JD Legend
 
Join Date: Feb 2020
Posts: 681
Default

I am not sure which one this does:

Code:
// Skip link if it present in download history (has "#duplicatelink" in comment)
// To download the file (prevent skipping), remove "#duplicatelink" from comment
// Trigger required: A Download Started

var comment = link.getComment() || "";

if (comment.indexOf("#duplicatelink") > -1) {
    // var url = link.getContentURL() || link.getPluginURL(); // Nur tatsächlich runtergeladene Varianten von YouTube werden als Duplikate behandelt
    var url = link.getHost() == "youtube.com" ? link.getContainerURL() : link.getContentURL() || link.getPluginURL(); // alle Varianten auf YouTube werden als Duplikate behandelt
    link.setEnabled(false); //To disable the link instead of skipping it, replace link.setSkipped(true); with link.setEnabled(false); in both the scripts
    alert("Download Skipped: \"" + url + "\" is present in history file.");
}
It must be one ot those: https://board.jdownloader.org/showpo...4&postcount=18

Quote:
Onces you've removed the link from downloadlist, JDownloader will no longer highlight the link in linkgrabber as dupe (different colour),
Yes, I know.

Quote:
the script cannot do this
Yes, that is OK, it shouldn't do that either. But it should mark the dups as dups (in the comments).
__________________
Aktuelles Windows

Last edited by Dockel; 03.12.2020 at 15:21.
Reply With Quote