1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-21 22:05:38 -04:00

Fixed: Ensure failing indexers are marked as failed when testing all

This commit is contained in:
Bogdan
2023-07-29 05:09:06 +03:00
committed by GitHub
parent ad0dc01cf7
commit b407eba612
3 changed files with 47 additions and 15 deletions
+10 -1
View File
@@ -102,10 +102,19 @@ namespace NzbDrone.Core.Indexers
{
var result = base.Test(definition);
if ((result == null || result.IsValid) && definition.Id != 0)
if (definition.Id == 0)
{
return result;
}
if (result == null || result.IsValid)
{
_indexerStatusService.RecordSuccess(definition.Id);
}
else
{
_indexerStatusService.RecordFailure(definition.Id);
}
return result;
}