Use AtomParser in FeedParser.

This commit is contained in:
Brent Simmons 2024-09-14 14:49:38 -07:00
parent 73ef8f085a
commit e1f3da7b09

View File

@ -39,11 +39,12 @@ public struct FeedParser {
return nil // TODO: try RSSInJSONParser.parse(parserData)
case .rss:
let rssFeed = RSSParser.parsedFeed(with: parserData)
return RSSFeedTransformer.parsedFeed(with: rssFeed)
let feed = RSSParser.parsedFeed(with: parserData)
return RSSFeedTransformer.parsedFeed(with: feed)
case .atom:
return nil // TODO: AtomParser.parse(parserData)
let feed = AtomParser.parsedFeed(with: parserData)
return RSSFeedTransformer.parsedFeed(with: feed)
case .unknown, .notAFeed:
return nil