You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.3 KiB
40 lines
1.3 KiB
using FluentValidation;
|
|
using NzbDrone.Core.Annotations;
|
|
using NzbDrone.Core.ThingiProvider;
|
|
using NzbDrone.Core.Validation;
|
|
|
|
namespace NzbDrone.Core.Extras.Metadata.Consumers.Roksbox
|
|
{
|
|
public class RoksboxSettingsValidator : AbstractValidator<RoksboxMetadataSettings>
|
|
{
|
|
}
|
|
|
|
public class RoksboxMetadataSettings : IProviderConfig
|
|
{
|
|
private static readonly RoksboxSettingsValidator Validator = new RoksboxSettingsValidator();
|
|
|
|
public RoksboxMetadataSettings()
|
|
{
|
|
TrackMetadata = true;
|
|
ArtistImages = true;
|
|
AlbumImages = true;
|
|
}
|
|
|
|
[FieldDefinition(0, Label = "Track Metadata", Type = FieldType.Checkbox, HelpText = "Season##\\filename.xml")]
|
|
public bool TrackMetadata { get; set; }
|
|
|
|
[FieldDefinition(1, Label = "Artist Images", Type = FieldType.Checkbox, HelpText = "Artist Title.jpg")]
|
|
public bool ArtistImages { get; set; }
|
|
|
|
[FieldDefinition(2, Label = "Album Images", Type = FieldType.Checkbox, HelpText = "Album Title.jpg")]
|
|
public bool AlbumImages { get; set; }
|
|
|
|
public bool IsValid => true;
|
|
|
|
public NzbDroneValidationResult Validate()
|
|
{
|
|
return new NzbDroneValidationResult(Validator.Validate(this));
|
|
}
|
|
}
|
|
}
|