New: Support JSON parsing in Cardigann

Co-Authored-By: mikeoscar2006 <89641725+mikeoscar2006@users.noreply.github.com>
This commit is contained in:
Qstick
2021-10-30 16:19:22 -05:00
parent 93deb56e8e
commit 2c0c6aa158
6 changed files with 531 additions and 351 deletions
@@ -150,13 +150,15 @@ namespace NzbDrone.Core.Indexers.Cardigann
{
public int After { get; set; }
public SelectorBlock Dateheaders { get; set; }
public SelectorBlock Count { get; set; }
}
public class SearchPathBlock : RequestBlock
{
public List<string> Categories { get; set; }
public bool Inheritinputs { get; set; } = true;
public bool Followredirect { get; set; } = false;
public bool Followredirect { get; set; }
public ResponseBlock Response { get; set; }
}
public class RequestBlock
@@ -194,4 +196,12 @@ namespace NzbDrone.Core.Indexers.Cardigann
{
public SelectorField Pathselector { get; set; }
}
public class ResponseBlock
{
public string Type { get; set; }
public string Attribute { get; set; }
public bool Multiple { get; set; }
public string NoResultsMessage { get; set; }
}
}