mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Add dc:date to parsing in newsfeed module, which allows parsing of more rss feeds.
This commit is contained in:
@@ -22,6 +22,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- News article in fullscreen (iframe) is now shown in front of modules.
|
- News article in fullscreen (iframe) is now shown in front of modules.
|
||||||
|
- Add dc:date to parsing in newsfeed module, which allows parsing of more rss feeds.
|
||||||
|
|
||||||
*This release is scheduled to be released on 2018-04-01.*
|
*This release is scheduled to be released on 2018-04-01.*
|
||||||
|
|
||||||
|
@@ -45,7 +45,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 || item['dc:date'];
|
||||||
var url = item.url || item.link || "";
|
var url = item.url || item.link || "";
|
||||||
|
|
||||||
if (title && pubdate) {
|
if (title && pubdate) {
|
||||||
|
Reference in New Issue
Block a user