Fixed: (Cardigann) Handle json field selector that returns arrays

Closes #950
pull/962/head
Qstick 2 years ago
parent 828aea14a9
commit 7e3dcb338c

@ -256,7 +256,16 @@ namespace NzbDrone.Core.Indexers.Cardigann
return null;
}
value = selection.Value<string>();
if (selection.Type is JTokenType.Array)
{
// turn this json array into a comma delimited string
var valueArray = selection.Value<JArray>();
value = string.Join(",", valueArray);
}
else
{
value = selection.Value<string>();
}
}
if (selector.Case != null)

Loading…
Cancel
Save