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 @@ namespace NzbDrone.Core.Indexers.Cardigann
var all = variablesRegExMatches.Groups[0].Value; var all = variablesRegExMatches.Groups[0].Value;
var variable = variablesRegExMatches.Groups[1].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) if (modifier != null)
{ {
value = modifier(value); value = modifier(value);