mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-20 21:55:03 -04:00
Fixed: Indexers returning relative urls for grabs.
This commit is contained in:
@@ -47,12 +47,12 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||
|
||||
protected override String GetInfoUrl(XElement item)
|
||||
{
|
||||
return item.TryGetValue("comments").TrimEnd("#comments");
|
||||
return ParseUrl(item.TryGetValue("comments").TrimEnd("#comments"));
|
||||
}
|
||||
|
||||
protected override String GetCommentUrl(XElement item)
|
||||
{
|
||||
return item.TryGetValue("comments");
|
||||
return ParseUrl(item.TryGetValue("comments"));
|
||||
}
|
||||
|
||||
protected override Int64 GetSize(XElement item)
|
||||
@@ -87,7 +87,7 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||
|
||||
if (!Uri.IsWellFormedUriString(url, UriKind.Absolute))
|
||||
{
|
||||
url = item.Element("enclosure").Attribute("url").Value;
|
||||
url = ParseUrl((string)item.Element("enclosure").Attribute("url"));
|
||||
}
|
||||
|
||||
return url;
|
||||
|
||||
Reference in New Issue
Block a user