mirror of https://github.com/Jackett/Jackett
Cardigann: add support for multiple search files with the same key
This commit is contained in:
parent
d18cc7575c
commit
4bdb7a9fd4
|
@ -36,7 +36,60 @@ namespace Jackett.Indexers
|
|||
get { return (ConfigurationData)base.configData; }
|
||||
set { base.configData = value; }
|
||||
}
|
||||
|
||||
|
||||
// A Dictionary allowing the same key multiple times
|
||||
public class KeyValuePairList : List<KeyValuePair<string, selectorBlock>>, IDictionary<string, selectorBlock>
|
||||
{
|
||||
public selectorBlock this[string key]
|
||||
{
|
||||
get
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
base.Add(new KeyValuePair<string, selectorBlock>(key, value));
|
||||
}
|
||||
}
|
||||
|
||||
public ICollection<string> Keys
|
||||
{
|
||||
get
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public ICollection<selectorBlock> Values
|
||||
{
|
||||
get
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public void Add(string key, selectorBlock value)
|
||||
{
|
||||
base.Add(new KeyValuePair<string, selectorBlock>(key, value));
|
||||
}
|
||||
|
||||
public bool ContainsKey(string key)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public bool Remove(string key)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public bool TryGetValue(string key, out selectorBlock value)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
// Cardigann yaml classes
|
||||
public class IndexerDefinition {
|
||||
public string Site { get; set; }
|
||||
|
@ -140,7 +193,7 @@ namespace Jackett.Indexers
|
|||
public List<filterBlock> Keywordsfilters { get; set; }
|
||||
public Dictionary<string, string> Inputs { get; set; }
|
||||
public rowsBlock Rows { get; set; }
|
||||
public Dictionary<string, selectorBlock> Fields { get; set; }
|
||||
public KeyValuePairList Fields { get; set; }
|
||||
}
|
||||
|
||||
public class rowsBlock : selectorBlock
|
||||
|
|
Loading…
Reference in New Issue