mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
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:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user