mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-20 22:14:34 -04:00
Fixed: (Cardigann) Handle Search.Path instead of Search.Paths
This commit is contained in:
@@ -138,6 +138,21 @@ namespace NzbDrone.Core.IndexerVersions
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user