mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
added url to the newsfeed fetcher
This commit is contained in:
parent
af660bc631
commit
66ef72a040
@ -46,6 +46,7 @@ var Fetcher = function(url, reloadInterval, encoding) {
|
||||
var title = item.title;
|
||||
var description = item.description || item.summary || item.content || '';
|
||||
var pubdate = item.pubdate || item.published || item.updated;
|
||||
var url = item.url || item.link;
|
||||
|
||||
if (title && pubdate) {
|
||||
|
||||
@ -56,6 +57,7 @@ var Fetcher = function(url, reloadInterval, encoding) {
|
||||
title: title,
|
||||
description: description,
|
||||
pubdate: pubdate,
|
||||
url: url,
|
||||
});
|
||||
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user