mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-24 01:15:50 +01:00
Fixed: Cast issue with Cardigann for query with tmdbid
This commit is contained in:
parent
c42e3aecbf
commit
f31cb4d0cf
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue