From 5e23d7ab2256734bb1613a7b56770800ada68975 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 19 Dec 2024 12:48:12 +1300 Subject: [PATCH] wolfmax4k: improve the download error message. resolves #15757 --- src/Jackett.Common/Indexers/Definitions/Wolfmax4K.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Jackett.Common/Indexers/Definitions/Wolfmax4K.cs b/src/Jackett.Common/Indexers/Definitions/Wolfmax4K.cs index 85a15a071..e80401576 100644 --- a/src/Jackett.Common/Indexers/Definitions/Wolfmax4K.cs +++ b/src/Jackett.Common/Indexers/Definitions/Wolfmax4K.cs @@ -159,6 +159,10 @@ namespace Jackett.Common.Indexers.Definitions public override async Task 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");