xspeeds: improve login error parsing. #5924

This commit is contained in:
Garfield69 2019-08-31 07:10:21 +12:00
parent f13f41e254
commit dab98af241
1 changed files with 2 additions and 0 deletions

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);
});