From 45cdb98c582164eb7b34dcd70c4f491c81a7a92b Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sat, 10 Oct 2015 00:04:58 +0200 Subject: [PATCH] Fixed namespace detection for EZRSS now DOCTYPE is gone. --- .../Indexers/TorrentRss/TorrentRssSettingsDetector.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/NzbDrone.Core/Indexers/TorrentRss/TorrentRssSettingsDetector.cs b/src/NzbDrone.Core/Indexers/TorrentRss/TorrentRssSettingsDetector.cs index fb98b7b46..10d05597a 100644 --- a/src/NzbDrone.Core/Indexers/TorrentRss/TorrentRssSettingsDetector.cs +++ b/src/NzbDrone.Core/Indexers/TorrentRss/TorrentRssSettingsDetector.cs @@ -212,6 +212,13 @@ namespace NzbDrone.Core.Indexers.TorrentRss return true; } + // Check namespaces + if (document.Descendants().Any(v => v.GetDefaultNamespace().NamespaceName == "http://xmlns.ezrss.it/0.1/")) + { + _logger.Trace("Identified feed as EZTV compatible by EZTV Namespace"); + return true; + } + return false; } }