Check that data is not XML, rather than that it is HTML, when determining feed type. Fix #144.

This commit is contained in:
Brent Simmons 2017-11-11 10:30:01 -08:00
parent 51825f8f05
commit 2982109f9b
1 changed files with 1 additions and 2 deletions

View File

@ -40,10 +40,9 @@ public func feedType(_ parserData: ParserData) -> FeedType {
return .rssInJSON
}
if nsdata.isProbablyHTML() {
if !nsdata.isProbablyXML() {
return .notAFeed
}
if nsdata.isProbablyRSS() {
return .rss
}