Fixed: ToString() to AbsoluteUri for MagnetUrls as well

This commit is contained in:
Qstick
2022-01-23 19:41:20 -06:00
parent 5b5c186d0c
commit 7388655e6d
2 changed files with 2 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ namespace NzbDrone.Api.V1.Indexers
if (result.DownloadProtocol == DownloadProtocol.Torrent)
{
((TorrentInfo)result).MagnetUrl = ((TorrentInfo)result).MagnetUrl.IsNotNullOrWhiteSpace() ? _downloadMappingService.ConvertToProxyLink(new Uri(((TorrentInfo)result).MagnetUrl), request.server, indexerDef.Id, result.Title).ToString() : null;
((TorrentInfo)result).MagnetUrl = ((TorrentInfo)result).MagnetUrl.IsNotNullOrWhiteSpace() ? _downloadMappingService.ConvertToProxyLink(new Uri(((TorrentInfo)result).MagnetUrl), request.server, indexerDef.Id, result.Title).AbsoluteUri : null;
}
}