Fixed: Indexer doesn't get disabled when disabled in Prowlar

Fixes #88
This commit is contained in:
Qstick
2021-06-01 22:00:30 -04:00
parent 56850aa6d9
commit 06ff872674
4 changed files with 12 additions and 12 deletions

View File

@@ -137,9 +137,9 @@ namespace NzbDrone.Core.Applications.Lidarr
{ {
Id = id, Id = id,
Name = $"{indexer.Name} (Prowlarr)", Name = $"{indexer.Name} (Prowlarr)",
EnableRss = indexer.AppProfile.Value.EnableRss, EnableRss = indexer.Enable && indexer.AppProfile.Value.EnableRss,
EnableAutomaticSearch = indexer.AppProfile.Value.EnableAutomaticSearch, EnableAutomaticSearch = indexer.Enable && indexer.AppProfile.Value.EnableAutomaticSearch,
EnableInteractiveSearch = indexer.AppProfile.Value.EnableInteractiveSearch, EnableInteractiveSearch = indexer.Enable && indexer.AppProfile.Value.EnableInteractiveSearch,
Priority = indexer.Priority, Priority = indexer.Priority,
Implementation = indexer.Protocol == DownloadProtocol.Usenet ? "Newznab" : "Torznab", Implementation = indexer.Protocol == DownloadProtocol.Usenet ? "Newznab" : "Torznab",
ConfigContract = schema.ConfigContract, ConfigContract = schema.ConfigContract,

View File

@@ -137,9 +137,9 @@ namespace NzbDrone.Core.Applications.Radarr
{ {
Id = id, Id = id,
Name = $"{indexer.Name} (Prowlarr)", Name = $"{indexer.Name} (Prowlarr)",
EnableRss = indexer.AppProfile.Value.EnableRss, EnableRss = indexer.Enable && indexer.AppProfile.Value.EnableRss,
EnableAutomaticSearch = indexer.AppProfile.Value.EnableAutomaticSearch, EnableAutomaticSearch = indexer.Enable && indexer.AppProfile.Value.EnableAutomaticSearch,
EnableInteractiveSearch = indexer.AppProfile.Value.EnableInteractiveSearch, EnableInteractiveSearch = indexer.Enable && indexer.AppProfile.Value.EnableInteractiveSearch,
Priority = indexer.Priority, Priority = indexer.Priority,
Implementation = indexer.Protocol == DownloadProtocol.Usenet ? "Newznab" : "Torznab", Implementation = indexer.Protocol == DownloadProtocol.Usenet ? "Newznab" : "Torznab",
ConfigContract = schema.ConfigContract, ConfigContract = schema.ConfigContract,

View File

@@ -137,9 +137,9 @@ namespace NzbDrone.Core.Applications.Readarr
{ {
Id = id, Id = id,
Name = $"{indexer.Name} (Prowlarr)", Name = $"{indexer.Name} (Prowlarr)",
EnableRss = indexer.AppProfile.Value.EnableRss, EnableRss = indexer.Enable && indexer.AppProfile.Value.EnableRss,
EnableAutomaticSearch = indexer.AppProfile.Value.EnableAutomaticSearch, EnableAutomaticSearch = indexer.Enable && indexer.AppProfile.Value.EnableAutomaticSearch,
EnableInteractiveSearch = indexer.AppProfile.Value.EnableInteractiveSearch, EnableInteractiveSearch = indexer.Enable && indexer.AppProfile.Value.EnableInteractiveSearch,
Priority = indexer.Priority, Priority = indexer.Priority,
Implementation = indexer.Protocol == DownloadProtocol.Usenet ? "Newznab" : "Torznab", Implementation = indexer.Protocol == DownloadProtocol.Usenet ? "Newznab" : "Torznab",
ConfigContract = schema.ConfigContract, ConfigContract = schema.ConfigContract,

View File

@@ -137,9 +137,9 @@ namespace NzbDrone.Core.Applications.Sonarr
{ {
Id = id, Id = id,
Name = $"{indexer.Name} (Prowlarr)", Name = $"{indexer.Name} (Prowlarr)",
EnableRss = indexer.AppProfile.Value.EnableRss, EnableRss = indexer.Enable && indexer.AppProfile.Value.EnableRss,
EnableAutomaticSearch = indexer.AppProfile.Value.EnableAutomaticSearch, EnableAutomaticSearch = indexer.Enable && indexer.AppProfile.Value.EnableAutomaticSearch,
EnableInteractiveSearch = indexer.AppProfile.Value.EnableInteractiveSearch, EnableInteractiveSearch = indexer.Enable && indexer.AppProfile.Value.EnableInteractiveSearch,
Priority = indexer.Priority, Priority = indexer.Priority,
Implementation = indexer.Protocol == DownloadProtocol.Usenet ? "Newznab" : "Torznab", Implementation = indexer.Protocol == DownloadProtocol.Usenet ? "Newznab" : "Torznab",
ConfigContract = schema.ConfigContract, ConfigContract = schema.ConfigContract,