From e13894bed204d3b1fa13e6818b68c22b247b5fda Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Fri, 19 Aug 2016 14:01:12 -0400 Subject: [PATCH] Fix getting channel for RSS feeds --- Application/FeedParsers/RssParser.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/FeedParsers/RssParser.cs b/Application/FeedParsers/RssParser.cs index 7be3da1..be3148d 100644 --- a/Application/FeedParsers/RssParser.cs +++ b/Application/FeedParsers/RssParser.cs @@ -30,7 +30,8 @@ namespace FeedCenter.FeedParsers return FeedReadResult.UnknownError; // Get the channel node - XmlNode channelNode = rootNode.SelectSingleNode("default:channel", namespaceManager); + var channelNode = rootNode.SelectSingleNode("default:channel", namespaceManager) ?? + rootNode.SelectSingleNode("channel", namespaceManager); if (channelNode == null) return FeedReadResult.InvalidXml;