Fixed: download URL for some newznab imposters

pull/6/head
Mark McDowall 10 years ago
parent f314fab878
commit eeafa2cb64

@ -81,6 +81,18 @@ namespace NzbDrone.Core.Indexers.Newznab
return base.GetPublishDate(item);
}
protected override string GetDownloadUrl(XElement item)
{
var url = base.GetDownloadUrl(item);
if (!Uri.IsWellFormedUriString(url, UriKind.Absolute))
{
url = item.Element("enclosure").Attribute("url").Value;
}
return url;
}
protected virtual Int32 GetTvRageId(XElement item)
{
var tvRageIdString = TryGetNewznabAttribute(item, "rageid");

@ -147,6 +147,7 @@ namespace NzbDrone.Core.Indexers
{
return item.Element("enclosure").Attribute("url").Value;
}
return item.Element("link").Value;
}

Loading…
Cancel
Save