@ -238,7 +238,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
{
_logger.Debug($"Setting options: {setting.Options.ToJson()}");
var sorted = setting.Options.OrderBy(x => x.Key).ToList();
var selected = sorted[(int)value];
var selected = sorted[(int)(long)value];
_logger.Debug($"Selected option: {selected.ToJson()}");
@ -112,7 +112,7 @@ namespace Prowlarr.Api.V1.Indexers
if (setting.Type == "select")
return value.ToString().ParseInt32() ?? 0;
return value.ToString().ParseInt64() ?? 0;
}
else if (setting.Type == "checkbox")