Fixed: Cast issue with Cardigann for query with tmdbid

This commit is contained in:
Qstick 2021-04-20 21:50:35 -04:00
parent c42e3aecbf
commit f31cb4d0cf

View file

@ -529,7 +529,8 @@ protected string ApplyGoTemplateText(string template, Dictionary<string, object>
var all = variablesRegExMatches.Groups[0].Value;
var variable = variablesRegExMatches.Groups[1].Value;
var value = (string)variables[variable];
//We store tmdbid and others as int32, thus conversion with .tostring is needed
var value = variables[variable]?.ToString() ?? null;
if (modifier != null)
{
value = modifier(value);