mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-26 20:11:49 +02:00
Fixed: (Cardigann) Handle json field selector that returns arrays
Closes #950
This commit is contained in:
@@ -256,7 +256,16 @@ namespace NzbDrone.Core.Indexers.Cardigann
|
|||||||
return null;
|
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)
|
if (selector.Case != null)
|
||||||
|
Reference in New Issue
Block a user