aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/Common/NamingOptions.cs
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2022-01-27 14:21:53 +0100
committerShadowghost <Ghost_of_Stone@web.de>2022-02-18 22:19:24 +0100
commitca5112f45a724fa24a420fa2b62c0849f99ff756 (patch)
treef071bacdbe36bf55cc41de0cf0ae999e58d5967d /Emby.Naming/Common/NamingOptions.cs
parentb92e1baa3c28870f49f82bfef9e48cd79b9b24c6 (diff)
feat(external-media): refactor external subtitle and audio provider
Diffstat (limited to 'Emby.Naming/Common/NamingOptions.cs')
-rw-r--r--Emby.Naming/Common/NamingOptions.cs49
1 files changed, 39 insertions, 10 deletions
diff --git a/Emby.Naming/Common/NamingOptions.cs b/Emby.Naming/Common/NamingOptions.cs
index eb211050f..82a3ad2b7 100644
--- a/Emby.Naming/Common/NamingOptions.cs
+++ b/Emby.Naming/Common/NamingOptions.cs
@@ -149,10 +149,14 @@ namespace Emby.Naming.Common
SubtitleFileExtensions = new[]
{
+ ".ass",
+ ".smi",
+ ".sami",
".srt",
".ssa",
- ".ass",
- ".sub"
+ ".sub",
+ ".vtt",
+ ".mks"
};
SubtitleFlagDelimiters = new[]
@@ -246,6 +250,22 @@ namespace Emby.Naming.Common
".mka"
};
+ ExternalAudioFlagDelimiters = new[]
+ {
+ '.'
+ };
+
+ ExternalAudioForcedFlags = new[]
+ {
+ "foreign",
+ "forced"
+ };
+
+ ExternalAudioDefaultFlags = new[]
+ {
+ "default"
+ };
+
EpisodeExpressions = new[]
{
// *** Begin Kodi Standard Naming
@@ -648,9 +668,7 @@ namespace Emby.Naming.Common
@"^\s*(?<name>[^ ].*?)\s*$"
};
- var extensions = VideoFileExtensions.ToList();
-
- extensions.AddRange(new[]
+ VideoFileExtensions = new[]
{
".mkv",
".m2t",
@@ -681,11 +699,7 @@ namespace Emby.Naming.Common
".m2v",
".rec",
".mxf"
- });
-
- VideoFileExtensions = extensions
- .Distinct(StringComparer.OrdinalIgnoreCase)
- .ToArray();
+ };
MultipleEpisodeExpressions = new[]
{
@@ -718,6 +732,21 @@ namespace Emby.Naming.Common
public string[] AudioFileExtensions { get; set; }
/// <summary>
+ /// Gets or sets list of external audio flag delimiters.
+ /// </summary>
+ public char[] ExternalAudioFlagDelimiters { get; set; }
+
+ /// <summary>
+ /// Gets or sets list of external audio forced flags.
+ /// </summary>
+ public string[] ExternalAudioForcedFlags { get; set; }
+
+ /// <summary>
+ /// Gets or sets list of external audio default flags.
+ /// </summary>
+ public string[] ExternalAudioDefaultFlags { get; set; }
+
+ /// <summary>
/// Gets or sets list of album stacking prefixes.
/// </summary>
public string[] AlbumStackingPrefixes { get; set; }