1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-21 23:33:18 +00:00

wolfmax4k: improve the download error message. resolves #15757

This commit is contained in:
Garfield69 2024-12-19 12:48:12 +13:00
parent 899b0a6723
commit 5e23d7ab22

View file

@ -159,6 +159,10 @@ namespace Jackett.Common.Indexers.Definitions
public override async Task<byte[]> Download(Uri link) public override async Task<byte[]> Download(Uri link)
{ {
var wmPage = await RequestWithCookiesAndRetryAsync(link.ToString()); var wmPage = await RequestWithCookiesAndRetryAsync(link.ToString());
if (wmPage.ContentString.Contains("ERROR EL ARCHIVO NO EXISTE"))
{
throw new Exception("Error, the Download link at the requested path does not exist.");
}
var wmDoc = new HtmlParser().ParseDocument(wmPage.ContentString); var wmDoc = new HtmlParser().ParseDocument(wmPage.ContentString);
var enlacitoUrl = wmDoc.QuerySelector(".app-message a:not(.buttonPassword)")?.GetAttribute("href"); var enlacitoUrl = wmDoc.QuerySelector(".app-message a:not(.buttonPassword)")?.GetAttribute("href");