From 0de1640e9c6b4dc7add065ab8b9ea7cadb93142c Mon Sep 17 00:00:00 2001 From: Selfhost Alt Date: Fri, 10 Mar 2023 23:36:32 -0800 Subject: [PATCH] Fixed: (PornoLab) Use correct download URL This indexer was previously using the infoUrl as the download URL, which cases downloads to fail when validating the torrent. This change updates the `DownloadUrl` property to actually point at the torrent file, enabling search results from this indexer to be downloaded. --- src/NzbDrone.Core/Indexers/Definitions/PornoLab.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/PornoLab.cs b/src/NzbDrone.Core/Indexers/Definitions/PornoLab.cs index cc55ed88d..bc90b5d78 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/PornoLab.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/PornoLab.cs @@ -360,6 +360,8 @@ namespace NzbDrone.Core.Indexers.Definitions var seeders = string.IsNullOrWhiteSpace(seederString) ? 0 : ParseUtil.CoerceInt(seederString); var forumid = ParseUtil.GetArgumentFromQueryString(qForumLink?.GetAttribute("href"), "f"); + var detailsId = ParseUtil.GetArgumentFromQueryString(qDetailsLink.GetAttribute("href"), "t"); + var downloadUrl = _settings.BaseUrl + "forum/dl.php?t=" + detailsId; var title = _settings.StripRussianLetters ? StripRussianRegex.Replace(qDetailsLink.TextContent, string.Empty) : qDetailsLink.TextContent; @@ -371,7 +373,7 @@ namespace NzbDrone.Core.Indexers.Definitions var release = new TorrentInfo { Guid = infoUrl, - DownloadUrl = infoUrl, + DownloadUrl = downloadUrl, InfoUrl = infoUrl, Title = title, Description = qForumLink.TextContent,