mirror of
https://github.com/Radarr/Radarr
synced 2025-01-01 12:54:21 +00:00
Fixed: download URL for some newznab imposters
This commit is contained in:
parent
f314fab878
commit
eeafa2cb64
2 changed files with 13 additions and 0 deletions
|
@ -81,6 +81,18 @@ protected override DateTime GetPublishDate(XElement item)
|
|||
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 @@ protected virtual string GetDownloadUrl(XElement item)
|
|||
{
|
||||
return item.Element("enclosure").Attribute("url").Value;
|
||||
}
|
||||
|
||||
return item.Element("link").Value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue