JDownloader Community - Appwork GmbH
 

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 26.04.2024, 14:19
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,622
Default

Quote:
Originally Posted by StefanM View Post
... script which marks all occurrences of duplicates.
Code:
/*
    disable dupes
    trigger : toolbar button pressed
*/

if (name == "disable dupes") {
    var original = [];

    getAllCrawledLinks().forEach(function(link) {
        var url = link.contentURL;
        
        if(url){
            if(original.indexOf(url) == -1){
                original.push(url);
                //link.comment = "original";
            } else {
                link.enabled = false;
                //link.comment = "dupe"
            }
        }
    })
}

Script also has an option to set comment which is disabled by default. If enabled, the comment on first link will be set as 'orginal' and subsequent links will be set to "dupes". This will be useful for creating view filters.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 00:53.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.