mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
xspeeds: improve login error parsing. #5924
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user