mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-02-16 10:58:31 -05:00
Fix getting channel for RSS feeds
This commit is contained in:
@@ -30,7 +30,8 @@ namespace FeedCenter.FeedParsers
|
|||||||
return FeedReadResult.UnknownError;
|
return FeedReadResult.UnknownError;
|
||||||
|
|
||||||
// Get the channel node
|
// 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)
|
if (channelNode == null)
|
||||||
return FeedReadResult.InvalidXml;
|
return FeedReadResult.InvalidXml;
|
||||||
|
|||||||
Reference in New Issue
Block a user