1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-27 02:09:24 +00:00

TorrentLeech: fix error message

This commit is contained in:
kaso17 2018-04-17 20:56:01 +02:00
parent 535f71c18c
commit 48cdc3bb5e

View file

@ -164,7 +164,7 @@ namespace Jackett.Common.Indexers
await ConfigureIfOK(result.Cookies, result.Content != null && result.Content.Contains("/user/account/logout"), () =>
{
CQ dom = result.Content;
var errorMessage = dom["div#login_heading + div.card-panel-error"].Text();
var errorMessage = dom["p.text-danger:contains(\"Error:\")"].Text().Trim();
throw new ExceptionWithConfigData(errorMessage, configData);
});
}