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:
parent
f13f41e254
commit
dab98af241
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue