wolfmax4k: fix download torrents with password (#15173)

This commit is contained in:
Alfredo Arellano de la Fuente 2024-03-22 18:16:13 +01:00 committed by GitHub
parent cb6945cb5c
commit 0df72a3545
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ namespace Jackett.Common.Indexers
{
var wmPage = await RequestWithCookiesAndRetryAsync(link.ToString(), emulateBrowser: false);
var wmDoc = new HtmlParser().ParseDocument(wmPage.ContentString);
var enlacitoUrl = wmDoc.QuerySelector(".app-message a")?.GetAttribute("href");
var enlacitoUrl = wmDoc.QuerySelector(".app-message a:not(.buttonPassword)")?.GetAttribute("href");
var enlacitoPage = await RequestWithCookiesAndRetryAsync(enlacitoUrl, emulateBrowser: false, referer: SiteLink);
var enlacitoDoc = new HtmlParser().ParseDocument(enlacitoPage.ContentString);