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
});
}