mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-10 23:29:53 +02:00
Fixed: Check only enabled Jackett indexers for '/all' endpoint
Closes #5848
This commit is contained in:
parent
e1c5533efa
commit
ae3dd5730e
@ -38,6 +38,7 @@ private void GivenIndexer(string baseUrl, string apiPath)
|
|||||||
_definition = new IndexerDefinition
|
_definition = new IndexerDefinition
|
||||||
{
|
{
|
||||||
Name = "Indexer",
|
Name = "Indexer",
|
||||||
|
EnableRss = true,
|
||||||
ConfigContract = "TorznabSettings",
|
ConfigContract = "TorznabSettings",
|
||||||
Settings = torznabSettings
|
Settings = torznabSettings
|
||||||
};
|
};
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
namespace NzbDrone.Core.HealthCheck.Checks
|
namespace NzbDrone.Core.HealthCheck.Checks
|
||||||
{
|
{
|
||||||
|
[CheckOn(typeof(ProviderAddedEvent<IIndexer>))]
|
||||||
[CheckOn(typeof(ProviderUpdatedEvent<IIndexer>))]
|
[CheckOn(typeof(ProviderUpdatedEvent<IIndexer>))]
|
||||||
[CheckOn(typeof(ProviderDeletedEvent<IIndexer>))]
|
[CheckOn(typeof(ProviderDeletedEvent<IIndexer>))]
|
||||||
[CheckOn(typeof(ProviderStatusChangedEvent<IIndexer>))]
|
[CheckOn(typeof(ProviderStatusChangedEvent<IIndexer>))]
|
||||||
@ -25,7 +26,8 @@ public override HealthCheck Check()
|
|||||||
{
|
{
|
||||||
var jackettAllProviders = _providerFactory.All()
|
var jackettAllProviders = _providerFactory.All()
|
||||||
.Where(
|
.Where(
|
||||||
i => i.ConfigContract.Equals("TorznabSettings") &&
|
i => i.Enable &&
|
||||||
|
i.ConfigContract.Equals("TorznabSettings") &&
|
||||||
(((TorznabSettings)i.Settings).BaseUrl.Contains("/torznab/all/api", StringComparison.InvariantCultureIgnoreCase) ||
|
(((TorznabSettings)i.Settings).BaseUrl.Contains("/torznab/all/api", StringComparison.InvariantCultureIgnoreCase) ||
|
||||||
((TorznabSettings)i.Settings).BaseUrl.Contains("/api/v2.0/indexers/all/results/torznab", StringComparison.InvariantCultureIgnoreCase) ||
|
((TorznabSettings)i.Settings).BaseUrl.Contains("/api/v2.0/indexers/all/results/torznab", StringComparison.InvariantCultureIgnoreCase) ||
|
||||||
((TorznabSettings)i.Settings).ApiPath.Contains("/torznab/all/api", StringComparison.InvariantCultureIgnoreCase) ||
|
((TorznabSettings)i.Settings).ApiPath.Contains("/torznab/all/api", StringComparison.InvariantCultureIgnoreCase) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user