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 title = item.title;
|
||||||
var description = item.description || item.summary || item.content || '';
|
var description = item.description || item.summary || item.content || '';
|
||||||
var pubdate = item.pubdate || item.published || item.updated;
|
var pubdate = item.pubdate || item.published || item.updated;
|
||||||
|
var url = item.url || item.link;
|
||||||
|
|
||||||
if (title && pubdate) {
|
if (title && pubdate) {
|
||||||
|
|
||||||
@ -56,6 +57,7 @@ var Fetcher = function(url, reloadInterval, encoding) {
|
|||||||
title: title,
|
title: title,
|
||||||
description: description,
|
description: description,
|
||||||
pubdate: pubdate,
|
pubdate: pubdate,
|
||||||
|
url: url,
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user