mirror of
https://github.com/Jackett/Jackett.git
synced 2025-12-16 03:47:15 +01:00
wolfmax4k: improve the download error message. resolves #15757
This commit is contained in:
@@ -159,6 +159,10 @@ namespace Jackett.Common.Indexers.Definitions
|
||||
public override async Task<byte[]> Download(Uri link)
|
||||
{
|
||||
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 enlacitoUrl = wmDoc.QuerySelector(".app-message a:not(.buttonPassword)")?.GetAttribute("href");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user