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

Fixes #88
pull/97/head
Qstick 4 years ago
parent 56850aa6d9
commit 06ff872674

@ -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,

@ -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,

@ -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,

@ -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,

Loading…
Cancel
Save