1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-24 22:36:19 -04:00

Add v5 Indexer options endpoints

This commit is contained in:
Mark McDowall
2026-03-08 10:20:48 -07:00
parent 01c7d06da4
commit 1fd8f55838
2 changed files with 57 additions and 0 deletions
@@ -0,0 +1,27 @@
using NzbDrone.Core.Configuration;
using Sonarr.Http.REST;
namespace Sonarr.Api.V5.Settings
{
public class IndexerSettingsResource : RestResource
{
public int MinimumAge { get; set; }
public int Retention { get; set; }
public int MaximumSize { get; set; }
public int RssSyncInterval { get; set; }
}
public static class IndexerConfigResourceMapper
{
public static IndexerSettingsResource ToResource(IConfigService model)
{
return new IndexerSettingsResource
{
MinimumAge = model.MinimumAge,
Retention = model.Retention,
MaximumSize = model.MaximumSize,
RssSyncInterval = model.RssSyncInterval
};
}
}
}