From 8ebec7c7e19d6a266029f74dd8df3765df3ce27a Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 9 Nov 2021 22:12:56 -0600 Subject: [PATCH] Fixed: (Applications) Test fails when selecting sub-categories only for sync Fixes #588 --- src/NzbDrone.Core/Applications/Lidarr/Lidarr.cs | 5 ++++- src/NzbDrone.Core/Applications/Radarr/Radarr.cs | 5 ++++- src/NzbDrone.Core/Applications/Readarr/Readarr.cs | 5 ++++- src/NzbDrone.Core/Applications/Sonarr/Sonarr.cs | 5 ++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/Applications/Lidarr/Lidarr.cs b/src/NzbDrone.Core/Applications/Lidarr/Lidarr.cs index f241fd850..1af2b7901 100644 --- a/src/NzbDrone.Core/Applications/Lidarr/Lidarr.cs +++ b/src/NzbDrone.Core/Applications/Lidarr/Lidarr.cs @@ -40,7 +40,10 @@ namespace NzbDrone.Core.Applications.Lidarr Capabilities = new IndexerCapabilities() }; - testIndexer.Capabilities.Categories.AddCategoryMapping(1, NewznabStandardCategory.Audio); + foreach (var cat in NewznabStandardCategory.AllCats) + { + testIndexer.Capabilities.Categories.AddCategoryMapping(1, cat); + } try { diff --git a/src/NzbDrone.Core/Applications/Radarr/Radarr.cs b/src/NzbDrone.Core/Applications/Radarr/Radarr.cs index 0c5bcdfaa..e5c8c25ab 100644 --- a/src/NzbDrone.Core/Applications/Radarr/Radarr.cs +++ b/src/NzbDrone.Core/Applications/Radarr/Radarr.cs @@ -40,7 +40,10 @@ namespace NzbDrone.Core.Applications.Radarr Capabilities = new IndexerCapabilities() }; - testIndexer.Capabilities.Categories.AddCategoryMapping(1, NewznabStandardCategory.Movies); + foreach (var cat in NewznabStandardCategory.AllCats) + { + testIndexer.Capabilities.Categories.AddCategoryMapping(1, cat); + } try { diff --git a/src/NzbDrone.Core/Applications/Readarr/Readarr.cs b/src/NzbDrone.Core/Applications/Readarr/Readarr.cs index b1205c5d1..f3603886d 100644 --- a/src/NzbDrone.Core/Applications/Readarr/Readarr.cs +++ b/src/NzbDrone.Core/Applications/Readarr/Readarr.cs @@ -40,7 +40,10 @@ namespace NzbDrone.Core.Applications.Readarr Capabilities = new IndexerCapabilities() }; - testIndexer.Capabilities.Categories.AddCategoryMapping(1, NewznabStandardCategory.Books); + foreach (var cat in NewznabStandardCategory.AllCats) + { + testIndexer.Capabilities.Categories.AddCategoryMapping(1, cat); + } try { diff --git a/src/NzbDrone.Core/Applications/Sonarr/Sonarr.cs b/src/NzbDrone.Core/Applications/Sonarr/Sonarr.cs index 589e8eb72..196b6f14a 100644 --- a/src/NzbDrone.Core/Applications/Sonarr/Sonarr.cs +++ b/src/NzbDrone.Core/Applications/Sonarr/Sonarr.cs @@ -40,7 +40,10 @@ namespace NzbDrone.Core.Applications.Sonarr Capabilities = new IndexerCapabilities() }; - testIndexer.Capabilities.Categories.AddCategoryMapping(1, NewznabStandardCategory.TV); + foreach (var cat in NewznabStandardCategory.AllCats) + { + testIndexer.Capabilities.Categories.AddCategoryMapping(1, cat); + } try {