Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/eeafa2cb64aea79ca6844b746392dccf2921a741 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fixed: download URL for some newznab imposters

pull/157/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