Add indexer: Immortalseed. Add category mapping framework.

This commit is contained in:
KZ
2015-07-29 00:10:04 +01:00
parent 37587bdc7e
commit ea069810a5
46 changed files with 494 additions and 170 deletions

View File

@@ -12,7 +12,7 @@ namespace Jackett.Models
public class TorznabQuery
{
public string QueryType { get; set; }
public string[] Categories { get; set; }
public int[] Categories { get; set; }
public int Extended { get; set; }
public string ApiKey { get; set; }
public int Limit { get; set; }
@@ -74,7 +74,10 @@ namespace Jackett.Models
if (query["cat"] != null)
{
q.Categories = query["cat"].Split(',');
q.Categories = query["cat"].Split(',').Select(s => int.Parse(s)).ToArray();
}else
{
q.Categories = new int[0];
}
if (query["extended"] != null)