From b608a7a904e096d3c061dd331bb8a83d185ede9d Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 21 Feb 2023 22:38:14 +0200 Subject: [PATCH] Fixed: (FunFile) Change download url --- src/NzbDrone.Core/Indexers/Definitions/FunFile.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/FunFile.cs b/src/NzbDrone.Core/Indexers/Definitions/FunFile.cs index 4f4a10602..4d7a8bdc7 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/FunFile.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/FunFile.cs @@ -288,11 +288,11 @@ public class FunFileParser : IParseIndexerResponse throw new Exception("Download links not found. Make sure you can download from the website."); } - var link = _settings.BaseUrl + qDownloadLink.GetAttribute("href"); + var downloadUrl = _settings.BaseUrl + qDownloadLink.GetAttribute("href"); var qDetailsLink = row.QuerySelector("a[href^=\"details.php?id=\"]"); var title = qDetailsLink?.GetAttribute("title")?.Trim(); - var details = _settings.BaseUrl + qDetailsLink?.GetAttribute("href")?.Replace("&hit=1", ""); + var infoUrl = _settings.BaseUrl + qDetailsLink?.GetAttribute("href")?.Replace("&hit=1", ""); var categoryLink = row.QuerySelector("a[href^=\"browse.php?cat=\"]")?.GetAttribute("href"); var cat = ParseUtil.GetArgumentFromQueryString(categoryLink, "cat"); @@ -302,9 +302,9 @@ public class FunFileParser : IParseIndexerResponse var release = new TorrentInfo { - Guid = link, - InfoUrl = link, - DownloadUrl = details, + Guid = infoUrl, + InfoUrl = infoUrl, + DownloadUrl = downloadUrl, Title = title, Categories = _categories.MapTrackerCatToNewznab(cat), Size = ParseUtil.GetBytes(row.Children[7].TextContent),