fix newsfeed module for feeds using "a10:updated" tag (#3242)

solves  #3238
This commit is contained in:
Karsten Hassel 2023-10-20 06:41:31 +02:00 committed by GitHub
parent 764ca3ac5c
commit f46b226940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ _This release is scheduled to be released on 2024-01-01._
- Fix the option eventClass on customEvents. - Fix the option eventClass on customEvents.
- Fix yr API version in locationforecast call (#3227) - Fix yr API version in locationforecast call (#3227)
- Fix cloneObject() function to respect RegExp (#3237) - Fix cloneObject() function to respect RegExp (#3237)
- Fix newsfeed module for feeds using "a10:updated" tag (#3238)
## [2.25.0] - 2023-10-01 ## [2.25.0] - 2023-10-01

View File

@ -48,7 +48,7 @@ const NewsfeedFetcher = function (url, reloadInterval, encoding, logFeedWarnings
parser.on("item", (item) => { parser.on("item", (item) => {
const title = item.title; const title = item.title;
let description = item.description || item.summary || item.content || ""; let description = item.description || item.summary || item.content || "";
const pubdate = item.pubdate || item.published || item.updated || item["dc:date"]; const pubdate = item.pubdate || item.published || item.updated || item["dc:date"] || item["a10:updated"];
const url = item.url || item.link || ""; const url = item.url || item.link || "";
if (title && pubdate) { if (title && pubdate) {