mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Select option type for cardigann indexers
This commit is contained in:
@@ -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")
|
||||
{
|
||||
|
Reference in New Issue
Block a user