mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
Replaced Uri with HttpUri.
This commit is contained in:
@@ -9,6 +9,7 @@ using System.Xml;
|
||||
using System.Xml.Linq;
|
||||
using NLog;
|
||||
using NzbDrone.Common.Extensions;
|
||||
using NzbDrone.Common.Http;
|
||||
using NzbDrone.Common.Instrumentation;
|
||||
using NzbDrone.Core.Indexers.Exceptions;
|
||||
using NzbDrone.Core.Parser.Model;
|
||||
@@ -266,14 +267,9 @@ namespace NzbDrone.Core.Indexers
|
||||
|
||||
try
|
||||
{
|
||||
var url = new Uri(value, UriKind.RelativeOrAbsolute);
|
||||
var url = _indexerResponse.HttpRequest.Url + new HttpUri(value);
|
||||
|
||||
if (!url.IsAbsoluteUri)
|
||||
{
|
||||
url = new Uri(_indexerResponse.HttpRequest.Url, url);
|
||||
}
|
||||
|
||||
return url.AbsoluteUri;
|
||||
return url.FullUri;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user