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.
This commit is contained in:
Selfhost Alt
2023-03-10 23:36:32 -08:00
committed by Qstick
parent 4c52856999
commit 0de1640e9c

View File

@@ -360,6 +360,8 @@ namespace NzbDrone.Core.Indexers.Definitions
var seeders = string.IsNullOrWhiteSpace(seederString) ? 0 : ParseUtil.CoerceInt(seederString); var seeders = string.IsNullOrWhiteSpace(seederString) ? 0 : ParseUtil.CoerceInt(seederString);
var forumid = ParseUtil.GetArgumentFromQueryString(qForumLink?.GetAttribute("href"), "f"); 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 var title = _settings.StripRussianLetters
? StripRussianRegex.Replace(qDetailsLink.TextContent, string.Empty) ? StripRussianRegex.Replace(qDetailsLink.TextContent, string.Empty)
: qDetailsLink.TextContent; : qDetailsLink.TextContent;
@@ -371,7 +373,7 @@ namespace NzbDrone.Core.Indexers.Definitions
var release = new TorrentInfo var release = new TorrentInfo
{ {
Guid = infoUrl, Guid = infoUrl,
DownloadUrl = infoUrl, DownloadUrl = downloadUrl,
InfoUrl = infoUrl, InfoUrl = infoUrl,
Title = title, Title = title,
Description = qForumLink.TextContent, Description = qForumLink.TextContent,