View Single Post
  #84  
Old 03.05.2017, 12:39
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 612
Default

Check RSS Feeds
Code:
// Check  RSS feeds
// Trigger Required: "Interval"
// Set interval to 3600000 (1 Hour) or more

var users = []; // <- Specify the youtube user IDs to check, e.g. ["cnn","bbc","nbc"]

if (interval >= 3600000) {
    var links = [];

    for (i = 0; i < users.length; i++) {
        var user = users[i];
        var content = JSON.parse(getPage("**External links are only visible to Support Staff** + user));
        var items = content.items ? content.items : [];

        for (j = 0; j < items.length; j++) {
            var item = items[j];
            links.push(item.link);
        }
    }

    callAPI("linkgrabberv2", "addLinks", {
        "links": links.join(" "),
        "autostart": null // <- Set to 'true' (without quotes) to autostart the downloads
    });
}

Last edited by Jiaz; 03.05.2017 at 14:23.
Reply With Quote