Check that data is not XML, rather than that it is HTML, when determining feed type. Fix #144.
This commit is contained in:
parent
51825f8f05
commit
2982109f9b
|
@ -40,10 +40,9 @@ public func feedType(_ parserData: ParserData) -> FeedType {
|
||||||
return .rssInJSON
|
return .rssInJSON
|
||||||
}
|
}
|
||||||
|
|
||||||
if nsdata.isProbablyHTML() {
|
if !nsdata.isProbablyXML() {
|
||||||
return .notAFeed
|
return .notAFeed
|
||||||
}
|
}
|
||||||
|
|
||||||
if nsdata.isProbablyRSS() {
|
if nsdata.isProbablyRSS() {
|
||||||
return .rss
|
return .rss
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue