diff --git a/Modules/RSParser/Sources/RSParser/Feeds/JSON/JSONFeedParser.swift b/Modules/RSParser/Sources/RSParser/Feeds/JSON/JSONFeedParser.swift index 7d7f2a419..f995aa76a 100644 --- a/Modules/RSParser/Sources/RSParser/Feeds/JSON/JSONFeedParser.swift +++ b/Modules/RSParser/Sources/RSParser/Feeds/JSON/JSONFeedParser.swift @@ -166,7 +166,7 @@ private extension JSONFeedParser { } let attachments = parseAttachments(itemDictionary) - return ParsedItem(syncServiceID: nil, uniqueID: uniqueID, feedURL: feedURL, url: url, externalURL: externalURL, title: title, language: language, contentHTML: contentHTML, contentText: contentText, markdown: nil, summary: summary, imageURL: imageURL, bannerImageURL: bannerImageURL, datePublished: datePublished, dateModified: dateModified, authors: authors, tags: tags, attachments: attachments) + return ParsedItem(syncServiceID: nil, uniqueID: uniqueID, feedURL: feedURL, url: url, externalURL: externalURL, title: title, language: language, contentHTML: contentHTML, contentText: contentText, markdown: nil, summary: summary, imageURL: imageURL, thumbnailURL: nil, bannerImageURL: bannerImageURL, datePublished: datePublished, dateModified: dateModified, authors: authors, tags: tags, attachments: attachments) } static func parseTitle(_ itemDictionary: JSONDictionary, _ feedURL: String) -> String? { diff --git a/Modules/RSParser/Sources/RSParser/Feeds/JSON/RSSInJSONParser.swift b/Modules/RSParser/Sources/RSParser/Feeds/JSON/RSSInJSONParser.swift index 392dca5cc..7df4385bd 100644 --- a/Modules/RSParser/Sources/RSParser/Feeds/JSON/RSSInJSONParser.swift +++ b/Modules/RSParser/Sources/RSParser/Feeds/JSON/RSSInJSONParser.swift @@ -130,7 +130,7 @@ private extension RSSInJSONParser { } if let uniqueID = uniqueID { - return ParsedItem(syncServiceID: nil, uniqueID: uniqueID, feedURL: feedURL, url: nil, externalURL: externalURL, title: title, language: nil, contentHTML: contentHTML, contentText: contentText, markdown: nil, summary: nil, imageURL: nil, bannerImageURL: nil, datePublished: datePublished, dateModified: nil, authors: authors, tags: tags, attachments: attachments) + return ParsedItem(syncServiceID: nil, uniqueID: uniqueID, feedURL: feedURL, url: nil, externalURL: externalURL, title: title, language: nil, contentHTML: contentHTML, contentText: contentText, markdown: nil, summary: nil, imageURL: nil, thumbnailURL: nil, bannerImageURL: nil, datePublished: datePublished, dateModified: nil, authors: authors, tags: tags, attachments: attachments) } return nil } diff --git a/Modules/RSParser/Sources/RSParser/Feeds/ParsedItem.swift b/Modules/RSParser/Sources/RSParser/Feeds/ParsedItem.swift index 876130919..088eaca15 100644 --- a/Modules/RSParser/Sources/RSParser/Feeds/ParsedItem.swift +++ b/Modules/RSParser/Sources/RSParser/Feeds/ParsedItem.swift @@ -22,6 +22,7 @@ public struct ParsedItem: Hashable, Sendable { public let markdown: String? public let summary: String? public let imageURL: String? + public let thumbnailURL: String? public let bannerImageURL: String? public let datePublished: Date? public let dateModified: Date? @@ -41,6 +42,7 @@ public struct ParsedItem: Hashable, Sendable { markdown: String?, summary: String?, imageURL: String?, + thumbnailURL: String?, bannerImageURL: String?, datePublished: Date?, dateModified: Date?, @@ -58,6 +60,7 @@ public struct ParsedItem: Hashable, Sendable { self.markdown = markdown self.summary = summary self.imageURL = imageURL + self.thumbnailURL = thumbnailURL self.bannerImageURL = bannerImageURL self.datePublished = datePublished self.dateModified = dateModified diff --git a/Modules/RSParser/Sources/RSParser/Feeds/XML/RSSItem.swift b/Modules/RSParser/Sources/RSParser/Feeds/XML/RSSItem.swift index 9b4bfc70c..594d2011c 100644 --- a/Modules/RSParser/Sources/RSParser/Feeds/XML/RSSItem.swift +++ b/Modules/RSParser/Sources/RSParser/Feeds/XML/RSSItem.swift @@ -100,6 +100,7 @@ final class RSSItem { markdown: markdown, summary: itemSummary, imageURL: imageURL ?? itunesImageURL, + thumbnailURL: nil, bannerImageURL: nil, datePublished: datePublished, dateModified: dateModified,