#93 Change IPT to be category aware and render availible categories to the front end.

This commit is contained in:
KZ
2015-07-29 20:30:28 +01:00
parent daf6d8ff50
commit 95402f3d4f
9 changed files with 165 additions and 36 deletions

View File

@@ -3,6 +3,7 @@ using Jackett.Indexers;
using Jackett.Models;
using Jackett.Services;
using Jackett.Utils;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
@@ -146,6 +147,7 @@ namespace Jackett.Controllers
var indexer = indexerService.GetIndexer((string)postData["indexer"]);
var config = await indexer.GetConfigurationForSetup();
jsonReply["config"] = config.ToJson();
jsonReply["caps"] = indexer.TorznabCaps.CapsToJson();
jsonReply["name"] = indexer.DisplayName;
jsonReply["result"] = "success";
}