Upgrade fix and testing an indexer now adds to the cache

This commit is contained in:
KZ
2015-07-29 00:56:08 +01:00
parent ea069810a5
commit d3e43b290f
2 changed files with 18 additions and 2 deletions

View File

@@ -141,7 +141,20 @@ namespace Jackett.Indexers
else
{
// Legacy cookie key
cookieHeader = (string)jsonConfig["cookies"];
var jcookes = jsonConfig["cookies"];
if (jcookes is JArray) {
var array = (JArray)jsonConfig["cookies"];
cookieHeader = string.Empty;
for (int i = 0; i < array.Count; i++)
{
if (i != 0)
cookieHeader += "; ";
cookieHeader += array[i];
}
}
else
cookieHeader = (string)jsonConfig["cookies"];
if (!string.IsNullOrEmpty(cookieHeader))
{
IsConfigured = true;