Fixed: (Cardigann) Handle Search.Path instead of Search.Paths

This commit is contained in:
Qstick 2021-06-01 21:09:33 -04:00
parent 4956072d39
commit 3989babb56

View file

@ -138,6 +138,21 @@ private CardigannDefinition LoadIndexerDef(string fileKey)
definition.Login.Method = "form";
}
if (definition.Search.Paths == null)
{
definition.Search.Paths = new List<SearchPathBlock>();
}
// 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)