1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-04 06:22:45 +00:00

xspeeds: improve login error parsing. #5924

This commit is contained in:
Garfield69 2019-08-31 07:10:21 +12:00
parent f13f41e254
commit dab98af241

View file

@ -184,6 +184,8 @@ namespace Jackett.Common.Indexers
{
CQ dom = result.Content;
var errorMessage = dom[".left_side table:eq(0) tr:eq(1)"].Text().Trim().Replace("\n\t", " ");
if (string.IsNullOrWhiteSpace(errorMessage))
errorMessage = dom["div.notification-body"].Text().Trim().Replace("\n\t", " ");
throw new ExceptionWithConfigData(errorMessage, configData);
});