mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-17 15:02:34 +02:00
Fixed: Only throw API key error for OMG when notice contains "api"
This commit is contained in:
parent
af5096f9af
commit
3a8507076c
@ -2,6 +2,7 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using System.Xml.Linq;
|
using System.Xml.Linq;
|
||||||
|
using NzbDrone.Common;
|
||||||
using NzbDrone.Core.Indexers.Exceptions;
|
using NzbDrone.Core.Indexers.Exceptions;
|
||||||
|
|
||||||
namespace NzbDrone.Core.Indexers.Omgwtfnzbs
|
namespace NzbDrone.Core.Indexers.Omgwtfnzbs
|
||||||
@ -21,6 +22,8 @@ protected override bool PreProcess(IndexerResponse indexerResponse)
|
|||||||
|
|
||||||
if (notice == null) return true;
|
if (notice == null) return true;
|
||||||
|
|
||||||
|
if (!notice.Value.ContainsIgnoreCase("api")) return true;
|
||||||
|
|
||||||
throw new ApiKeyException(notice.Value);
|
throw new ApiKeyException(notice.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user