mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Backport pull request #12962 from jellyfin/release-10.10.z
Always consider null char as delimiter for ID3v2 Original-merge: 97dc02b1632c3c329a181c816ff2c6dc84319732 Merged-by: crobibero <cody@robibe.ro> Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
882f3374ed
commit
ee66c74527
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user