1
0
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:
Taloth Saldono
2015-08-15 12:32:37 +02:00
parent 38c57ce73a
commit 211863d55d
10 changed files with 87 additions and 50 deletions
@@ -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;