using MediaBrowser.Model.Plugins; namespace Jellyfin.Plugin.YandexMusic.Configuration; /// /// Plugin configuration. /// public class PluginConfiguration : BasePluginConfiguration { /// /// Gets or sets the Yandex OAuth token. Optional, required only for lyrics. /// public string Token { get; set; } = string.Empty; /// /// Gets or sets the preferred language for genre names and artist descriptions. /// public string Language { get; set; } = "ru"; /// /// Gets or sets a value indicating whether song metadata is enabled. /// public bool EnableSongMetadata { get; set; } = true; /// /// Gets or sets a value indicating whether album metadata is enabled. /// public bool EnableAlbumMetadata { get; set; } = true; /// /// Gets or sets a value indicating whether artist metadata is enabled. /// public bool EnableArtistMetadata { get; set; } = true; /// /// Gets or sets a value indicating whether cover art is enabled. /// public bool EnableImages { get; set; } = true; /// /// Gets or sets a value indicating whether lyrics are enabled. /// public bool EnableLyrics { get; set; } = true; /// /// Gets or sets a value indicating whether the real album title from Yandex is written to the track's Album field. /// When disabled (default), the existing album tag is kept. /// public bool UseYandexAlbumName { get; set; } /// /// Gets or sets a value indicating whether the original release year from Yandex may replace the year tag. /// public bool UseYandexYear { get; set; } = true; /// /// Gets or sets the minimum match score (0..1) required to accept a search result. /// public double MatchThreshold { get; set; } = 0.72; /// /// Gets or sets the duration tolerance in seconds used while matching tracks. /// public int DurationToleranceSeconds { get; set; } = 12; /// /// Gets or sets a value indicating whether genres from Yandex are written to items. /// public bool EnableGenres { get; set; } = true; /// /// Gets or sets a value indicating whether labels are written as studios. /// public bool EnableLabels { get; set; } = true; }