diff --git a/Sources/FeedKit/Models/RSS/RSSFeed + mapAttributes.swift b/Sources/FeedKit/Models/RSS/RSSFeed + mapAttributes.swift index 592c58f8..f56b8e03 100644 --- a/Sources/FeedKit/Models/RSS/RSSFeed + mapAttributes.swift +++ b/Sources/FeedKit/Models/RSS/RSSFeed + mapAttributes.swift @@ -223,6 +223,7 @@ extension RSSFeed { .rssChannelItemItunesExplicit, .rssChannelItemItunesIsClosedCaptioned, .rssChannelItemItunesOrder, + .rssChannelItemItunesTitle, .rssChannelItemItunesSubtitle, .rssChannelItemItunesSummary, .rssChannelItemItunesKeywords: diff --git a/Sources/FeedKit/Models/RSS/RSSFeed + mapCharacters.swift b/Sources/FeedKit/Models/RSS/RSSFeed + mapCharacters.swift index 64aa3f3c..d1058830 100644 --- a/Sources/FeedKit/Models/RSS/RSSFeed + mapCharacters.swift +++ b/Sources/FeedKit/Models/RSS/RSSFeed + mapCharacters.swift @@ -131,6 +131,7 @@ extension RSSFeed { case .rssChannelItemItunesExplicit: self.items?.last?.iTunes?.iTunesExplicit = self.items?.last?.iTunes?.iTunesExplicit?.appending(string) ?? string case .rssChannelItemItunesIsClosedCaptioned: self.items?.last?.iTunes?.isClosedCaptioned = self.items?.last?.iTunes?.isClosedCaptioned?.appending(string) ?? string case .rssChannelItemItunesOrder: self.items?.last?.iTunes?.iTunesOrder = Int(string) + case .rssChannelItemItunesTitle: self.items?.last?.iTunes?.iTunesTitle = self.items?.last?.iTunes?.iTunesTitle?.appending(string) ?? string case .rssChannelItemItunesSubtitle: self.items?.last?.iTunes?.iTunesSubtitle = self.items?.last?.iTunes?.iTunesSubtitle?.appending(string) ?? string case .rssChannelItemItunesSummary: self.items?.last?.iTunes?.iTunesSummary = self.items?.last?.iTunes?.iTunesSummary?.appending(string) ?? string case .rssChannelItemItunesKeywords: self.items?.last?.iTunes?.iTunesKeywords = self.items?.last?.iTunes?.iTunesKeywords?.appending(string) ?? string diff --git a/Sources/FeedKit/Models/RSS/RSSPath.swift b/Sources/FeedKit/Models/RSS/RSSPath.swift index a9339a20..92ef74f5 100644 --- a/Sources/FeedKit/Models/RSS/RSSPath.swift +++ b/Sources/FeedKit/Models/RSS/RSSPath.swift @@ -143,6 +143,7 @@ enum RSSPath: String { case rssChannelItemItunesExplicit = "/rss/channel/item/itunes:explicit" case rssChannelItemItunesIsClosedCaptioned = "/rss/channel/item/itunes:isClosedCaptioned" case rssChannelItemItunesOrder = "/rss/channel/item/itunes:order" + case rssChannelItemItunesTitle = "/rss/channel/item/itunes:title" case rssChannelItemItunesSubtitle = "/rss/channel/item/itunes:subtitle" case rssChannelItemItunesSummary = "/rss/channel/item/itunes:summary" case rssChannelItemItunesKeywords = "/rss/channel/item/itunes:keywords" diff --git a/Tests/iTunesTests.swift b/Tests/iTunesTests.swift index 9879ac1c..58aac317 100644 --- a/Tests/iTunesTests.swift +++ b/Tests/iTunesTests.swift @@ -76,6 +76,7 @@ class iTunesTests: BaseTestCase { // Then XCTAssertNotNil(feed?.items?.first?.iTunes) + XCTAssertEqual(feed?.items?.first?.iTunes?.iTunesTitle, "Dan Carlin's Hardcore History") XCTAssertEqual(feed?.items?.first?.iTunes?.iTunesAuthor, "Dan Carlin") XCTAssertEqual(feed?.items?.first?.iTunes?.iTunesBlock, "No") XCTAssertEqual(feed?.items?.first?.iTunes?.isClosedCaptioned, "Yes")