mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 05:47:22 -04: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:
parent
4c52856999
commit
0de1640e9c
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue