diff --git a/src/scripts/models/item.ts b/src/scripts/models/item.ts index 5763812b..6ca4d2a8 100644 --- a/src/scripts/models/item.ts +++ b/src/scripts/models/item.ts @@ -55,7 +55,9 @@ export class RSSItem { this.title = item.title || null; this.link = item.link || ""; this.fetchedDate = new Date(); - this.date = new Date(item.isoDate ?? item.pubDate ?? this.fetchedDate); + this.date = new Date( + item.isoDate ?? item.pubDate ?? item.updated ?? this.fetchedDate, + ); this.thumbnails = []; this.thumbnailJobs = []; this.creator = item.creator; diff --git a/src/scripts/utils.ts b/src/scripts/utils.ts index 54539ff2..2cdd85fe 100644 --- a/src/scripts/utils.ts +++ b/src/scripts/utils.ts @@ -56,6 +56,10 @@ const rssParser = new Parser({ item: [ "thumb", "image", + // Part of an atom namespace even in RSS. + // xmlns:atom="http://www.w3.org/2005/Atom" + ["atom:updated", "updated"], + ["updated", "updated"], ["media:thumbnail", "mediaThumbnails", { keepArray: true }], ["content:encoded", "fullContent"], ["media:content", "mediaContent", { keepArray: true }],