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.
26 lines
763 B
26 lines
763 B
using NzbDrone.Core.Configuration;
|
|
using Readarr.Http.REST;
|
|
|
|
namespace Readarr.Api.V1.Config
|
|
{
|
|
public class MetadataProviderConfigResource : RestResource
|
|
{
|
|
public string MetadataSource { get; set; }
|
|
public WriteAudioTagsType WriteAudioTags { get; set; }
|
|
public bool ScrubAudioTags { get; set; }
|
|
}
|
|
|
|
public static class MetadataProviderConfigResourceMapper
|
|
{
|
|
public static MetadataProviderConfigResource ToResource(IConfigService model)
|
|
{
|
|
return new MetadataProviderConfigResource
|
|
{
|
|
MetadataSource = model.MetadataSource,
|
|
WriteAudioTags = model.WriteAudioTags,
|
|
ScrubAudioTags = model.ScrubAudioTags,
|
|
};
|
|
}
|
|
}
|
|
}
|