Add dc:date to parsing in newsfeed module, which allows parsing of more rss feeds.

This commit is contained in:
Thomas Mirlacher
2018-03-10 00:30:45 +01:00
parent fb7e97b8ad
commit fa45e66da6
2 changed files with 2 additions and 1 deletions

View File

@@ -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.*

View File

@@ -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) {