Fixed namespace detection for EZRSS now DOCTYPE is gone.

This commit is contained in:
Taloth Saldono 2015-10-10 00:04:58 +02:00
parent 6585aed0a9
commit 45cdb98c58
1 changed files with 7 additions and 0 deletions

View File

@ -212,6 +212,13 @@ namespace NzbDrone.Core.Indexers.TorrentRss
return true; 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; return false;
} }
} }