New: (Cardigann) AllowRawSearch Property

pull/543/head
Qstick 3 years ago
parent 9eba50d9db
commit 25bb10d62b

@ -70,6 +70,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
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 @@ namespace NzbDrone.Core.Indexers
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…
Cancel
Save