mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Allow the subscription to multiple news feeds in one newsfeed instance.
This commit is contained in:
@@ -46,11 +46,13 @@ var Fetcher = function(url, reloadInterval, encoding) {
|
||||
var regex = /(<([^>]+)>)/ig;
|
||||
description = description.replace(regex, "");
|
||||
|
||||
items.push({
|
||||
title: item.title,
|
||||
description: description,
|
||||
pubdate: item.pubdate,
|
||||
});
|
||||
if (item.title && description && item.pubdate) {
|
||||
items.push({
|
||||
title: item.title,
|
||||
description: description,
|
||||
pubdate: item.pubdate,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
parser.on("end", function() {
|
||||
|
Reference in New Issue
Block a user