aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Extensions/LibraryOptionsExtension.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/Extensions/LibraryOptionsExtension.cs')
-rw-r--r--MediaBrowser.Model/Extensions/LibraryOptionsExtension.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Extensions/LibraryOptionsExtension.cs b/MediaBrowser.Model/Extensions/LibraryOptionsExtension.cs
index 4a814f22a..b088cfb53 100644
--- a/MediaBrowser.Model/Extensions/LibraryOptionsExtension.cs
+++ b/MediaBrowser.Model/Extensions/LibraryOptionsExtension.cs
@@ -18,7 +18,7 @@ public static class LibraryOptionsExtension
{
ArgumentNullException.ThrowIfNull(options);
- return options.CustomTagDelimiters.Select<string, char?>(x =>
+ var delimiterList = options.CustomTagDelimiters.Select<string, char?>(x =>
{
var isChar = char.TryParse(x, out var c);
if (isChar)
@@ -27,6 +27,8 @@ public static class LibraryOptionsExtension
}
return null;
- }).Where(x => x is not null).Select(x => x!.Value).ToArray();
+ }).Where(x => x is not null).Select(x => x!.Value).ToList();
+ delimiterList.Add('\0');
+ return delimiterList.ToArray();
}
}