Skip to content
Snippets Groups Projects
Commit 7fbb6f1f authored by jurgenhaas's avatar jurgenhaas
Browse files

Support a blacklist for RSS feeds

parent 9b57d0af
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,9 @@ function RssTrackerSource(id, lastActivity, url, params) {
util.inherits(RssTrackerSource, BaseTrackerSource);
RssTrackerSource.type = 'RSS';
RssTrackerSource.blacklist = [
'Keine Einträge'
];
RssTrackerSource.prototype.poll = function() {
var source = this;
......@@ -45,6 +48,12 @@ RssTrackerSource.prototype.poll = function() {
};
RssTrackerSource.prototype.notifyItem = function(item) {
var i;
for (i in RssTrackerSource.blacklist) {
if (item.title == RssTrackerSource.blacklist[i]) {
return false;
}
}
return true;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment