mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-27 19:03:11 +01:00
Fixed: Select option type for cardigann indexers
This commit is contained in:
parent
e24c2d7c5f
commit
b870f96ec8
2 changed files with 2 additions and 2 deletions
|
|
@ -238,7 +238,7 @@ protected Dictionary<string, object> GetBaseTemplateVariables()
|
|||
{
|
||||
_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 @@ private object MapValue(SettingsField setting, object value)
|
|||
{
|
||||
if (setting.Type == "select")
|
||||
{
|
||||
return value.ToString().ParseInt32() ?? 0;
|
||||
return value.ToString().ParseInt64() ?? 0;
|
||||
}
|
||||
else if (setting.Type == "checkbox")
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue