From 3989babb56945332ec786632d98c5e83de185f9f Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 1 Jun 2021 21:09:33 -0400 Subject: [PATCH] Fixed: (Cardigann) Handle Search.Path instead of Search.Paths --- .../IndexerDefinitionUpdateService.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs b/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs index d0b57d5d7..af83e6d14 100644 --- a/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs +++ b/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs @@ -138,6 +138,21 @@ namespace NzbDrone.Core.IndexerVersions definition.Login.Method = "form"; } + if (definition.Search.Paths == null) + { + definition.Search.Paths = new List(); + } + + // convert definitions with a single search Path to a Paths entry + if (definition.Search.Path != null) + { + definition.Search.Paths.Add(new SearchPathBlock + { + Path = definition.Search.Path, + Inheritinputs = true + }); + } + return definition; } catch (Exception e)