mirror of
https://github.com/Lidarr/Lidarr
synced 2025-12-21 15:53:02 +01:00
* New: Option to disable cover art embed in files Fixes #2488 * Update src/NzbDrone.Core/MediaFiles/AudioTagService.cs Co-authored-by: Bogdan <mynameisbogdan@users.noreply.github.com>
27 lines
862 B
C#
27 lines
862 B
C#
using Lidarr.Http.REST;
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
namespace Lidarr.Api.V1.Config
|
|
{
|
|
public class MetadataProviderConfigResource : RestResource
|
|
{
|
|
public string MetadataSource { get; set; }
|
|
public WriteAudioTagsType WriteAudioTags { get; set; }
|
|
public bool ScrubAudioTags { get; set; }
|
|
public bool EmbedCoverArt { get; set; }
|
|
}
|
|
|
|
public static class MetadataProviderConfigResourceMapper
|
|
{
|
|
public static MetadataProviderConfigResource ToResource(IConfigService model)
|
|
{
|
|
return new MetadataProviderConfigResource
|
|
{
|
|
MetadataSource = model.MetadataSource,
|
|
WriteAudioTags = model.WriteAudioTags,
|
|
ScrubAudioTags = model.ScrubAudioTags,
|
|
EmbedCoverArt = model.EmbedCoverArt,
|
|
};
|
|
}
|
|
}
|
|
}
|