mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00

New: Download client UI matches other settings Fixed: Prevent drone factory folder from being set to invalid paths/root path for series Fixed: Switching pages in settings will not hide changes Fixed: Test download clients Fixed: Settings are validated before saving
17 lines
651 B
C#
17 lines
651 B
C#
using FluentValidation;
|
|
using NzbDrone.Core.Configuration;
|
|
using NzbDrone.Core.Validation.Paths;
|
|
|
|
namespace NzbDrone.Api.Config
|
|
{
|
|
public class MediaManagementConfigModule : NzbDroneConfigModule<MediaManagementConfigResource>
|
|
{
|
|
public MediaManagementConfigModule(IConfigService configService, PathExistsValidator pathExistsValidator)
|
|
: base(configService)
|
|
{
|
|
SharedValidator.RuleFor(c => c.FileChmod).NotEmpty();
|
|
SharedValidator.RuleFor(c => c.FolderChmod).NotEmpty();
|
|
SharedValidator.RuleFor(c => c.RecycleBin).IsValidPath().SetValidator(pathExistsValidator);
|
|
}
|
|
}
|
|
} |