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

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

@ -256,8 +256,17 @@ namespace NzbDrone.Core.Indexers.Cardigann
return null; return null;
} }
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>(); value = selection.Value<string>();
} }
}
if (selector.Case != null) if (selector.Case != null)
{ {

Loading…
Cancel
Save