diff --git a/src/NzbDrone.Core.Test/Applications/Listenarr/ListenarrV1ProxyFixture.cs b/src/NzbDrone.Core.Test/Applications/Listenarr/ListenarrV1ProxyFixture.cs index e10bc7c73..5500b696a 100644 --- a/src/NzbDrone.Core.Test/Applications/Listenarr/ListenarrV1ProxyFixture.cs +++ b/src/NzbDrone.Core.Test/Applications/Listenarr/ListenarrV1ProxyFixture.cs @@ -57,7 +57,7 @@ public void GetIndexerSchema_should_handle_single_object_response_with_fields_ob { var settings = new ListenarrSettings { BaseUrl = "http://localhost:4545", ApiKey = "abc123" }; - var json = "[ { \"id\": 1, \"implementation\": \"Newznab\", \"fields\": { \"baseUrl\": { \"type\": \"text\" }, \"apiKey\": { \"type\": \"text\" } } } ]"; + var json = "[ { \"id\": 1, \"implementation\": \"Newznab\", \"fields\": [ { \"name\": \"baseUrl\", \"type\": \"text\" }, { \"name\": \"apiKey\", \"type\": \"text\" } ] } ]"; Mocker.GetMock() .Setup(c => c.Execute(It.IsAny())) diff --git a/src/NzbDrone.Core/Applications/Listenarr/Listenarr.cs b/src/NzbDrone.Core/Applications/Listenarr/Listenarr.cs index eaea83e67..636f2ab86 100644 --- a/src/NzbDrone.Core/Applications/Listenarr/Listenarr.cs +++ b/src/NzbDrone.Core/Applications/Listenarr/Listenarr.cs @@ -327,7 +327,6 @@ public override void UpdateIndexer(IndexerDefinition indexer, bool forceSync = f if ((indexerCapabilities.MusicSearchAvailable || indexerCapabilities.SearchAvailable) && indexerCapabilities.Categories.SupportedCategories(Settings.SyncCategories.ToArray()).Any()) { - if (remoteIndexer.Fields != null) { listenarrIndexer.Fields.AddRange(remoteIndexer.Fields.Where(f => listenarrIndexer.Fields.All(s => s.Name != f.Name)));