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:
parent
899b0a6723
commit
5e23d7ab22
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue