Fixed: Torznab parsing when enclosure is magent link

This commit is contained in:
Mark McDowall
2015-04-19 13:13:14 -07:00
parent 4c9f13cb26
commit 65f1dbde00
4 changed files with 131 additions and 1 deletions
@@ -48,7 +48,7 @@ namespace NzbDrone.Core.Indexers.Torznab
protected override ReleaseInfo PostProcess(XElement item, ReleaseInfo releaseInfo)
{
var enclosureType = item.Element("enclosure").Attribute("type").Value;
if (enclosureType != "application/x-bittorrent")
if (!enclosureType.Contains("application/x-bittorrent"))
{
throw new UnsupportedFeedException("Feed contains {0} instead of application/x-bittorrent", enclosureType);
}