mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-01-05 23:33:53 +01:00
New: (Cardigann) AllowRawSearch Property
This commit is contained in:
parent
9eba50d9db
commit
25bb10d62b
2 changed files with 2 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ public class CapabilitiesBlock
|
|||
public Dictionary<string, string> Categories { get; set; }
|
||||
public List<CategorymappingBlock> Categorymappings { get; set; }
|
||||
public Dictionary<string, List<string>> Modes { get; set; }
|
||||
public bool AllowRawSearch { get; set; }
|
||||
}
|
||||
|
||||
public class CaptchaBlock
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@ private void MapCardigannDefinition(IndexerDefinition definition)
|
|||
definition.Privacy = defFile.Type == "private" ? IndexerPrivacy.Private : IndexerPrivacy.Public;
|
||||
definition.Capabilities = new IndexerCapabilities();
|
||||
definition.Capabilities.ParseCardigannSearchModes(defFile.Caps.Modes);
|
||||
definition.Capabilities.SupportsRawSearch = defFile.Caps.AllowRawSearch;
|
||||
MapCardigannCategories(definition, defFile);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue