diff options
| author | gnattu <gnattu@users.noreply.github.com> | 2024-09-08 11:10:59 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-07 21:10:59 -0600 |
| commit | c6de7225b9f493bb18f5e7362d785ac8a71e5f32 (patch) | |
| tree | a106717b37cd9d2e9af982f497f48fa6d3c64ae8 /MediaBrowser.Model/Configuration/LibraryOptions.cs | |
| parent | b4f71859d939c5c0fa0a155f712d25cba0c20b8f (diff) | |
Add non-standard multi-value audio tag support (#12385)
Diffstat (limited to 'MediaBrowser.Model/Configuration/LibraryOptions.cs')
| -rw-r--r-- | MediaBrowser.Model/Configuration/LibraryOptions.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Configuration/LibraryOptions.cs b/MediaBrowser.Model/Configuration/LibraryOptions.cs index 90ac377f4..04283cc9e 100644 --- a/MediaBrowser.Model/Configuration/LibraryOptions.cs +++ b/MediaBrowser.Model/Configuration/LibraryOptions.cs @@ -7,6 +7,8 @@ namespace MediaBrowser.Model.Configuration { public class LibraryOptions { + private static readonly char[] _defaultTagDelimiters = ['/', '|', ';', '\\']; + public LibraryOptions() { TypeOptions = Array.Empty<TypeOptions>(); @@ -30,6 +32,11 @@ namespace MediaBrowser.Model.Configuration PathInfos = Array.Empty<MediaPathInfo>(); EnableAutomaticSeriesGrouping = true; SeasonZeroDisplayName = "Specials"; + + PreferNonstandardArtistsTag = false; + UseCustomTagDelimiters = false; + CustomTagDelimiters = _defaultTagDelimiters; + DelimiterWhitelist = Array.Empty<string>(); } public bool Enabled { get; set; } = true; @@ -113,6 +120,17 @@ namespace MediaBrowser.Model.Configuration public string[] LyricFetcherOrder { get; set; } + [DefaultValue(false)] + public bool PreferNonstandardArtistsTag { get; set; } + + [DefaultValue(false)] + public bool UseCustomTagDelimiters { get; set; } + + [DefaultValue(typeof(LibraryOptions), nameof(_defaultTagDelimiters))] + public char[] CustomTagDelimiters { get; set; } + + public string[] DelimiterWhitelist { get; set; } + public bool AutomaticallyAddToCollection { get; set; } public EmbeddedSubtitleOptions AllowEmbeddedSubtitles { get; set; } |
