mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-20 03:40:49 +02:00
Fixed: (Cardigann) Handle Search.Path instead of Search.Paths
This commit is contained in:
parent
4956072d39
commit
3989babb56
1 changed files with 15 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue