Fix SCC not saving and AlphaRatio

This commit is contained in:
KZ
2015-07-25 11:47:01 +01:00
parent e9e8d29697
commit 2673d5a796
5 changed files with 66 additions and 77 deletions

View File

@@ -31,6 +31,13 @@ namespace Jackett.Controllers
try
{
var indexer = indexerService.GetIndexer(indexerID);
if (!indexer.IsConfigured)
{
logger.Warn(string.Format("Rejected a request to {0} which is unconfigured.", indexer.DisplayName));
return Request.CreateResponse(HttpStatusCode.Forbidden, "This indexer is not configured.");
}
var remoteFile = Encoding.UTF8.GetString(HttpServerUtility.UrlTokenDecode(path));
var downloadBytes = await indexer.Download(new Uri(remoteFile));