diff --git a/source/cartastraccia/rss.d b/source/cartastraccia/rss.d index 8f89ee6..4019db9 100644 --- a/source/cartastraccia/rss.d +++ b/source/cartastraccia/rss.d @@ -130,13 +130,13 @@ void parseRSS(ref RSS rss, immutable string feed) @trusted { auto rssRange = parseXML!simpleXML(feed); + if(rssRange.front.name == "html") { - logWarn("Unable to parse HTML file"); rss = InvalidRSS("html", ""); return; } - while(rssRange.front.name != "channel") { + while(rssRange.front.type != EntityType.text && rssRange.front.name != "channel") { rssRange.popFront(); } rssRange.popFront();