mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Check that data is not XML, rather than that it is HTML, when determining feed type. Fix #144.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user