mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-12-27 18:06:43 +00:00
Always consider null char as delimiter for ID3v2 (#12962)
This commit is contained in:
parent
aa08d3f2bf
commit
97dc02b163
|
@ -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…
Reference in a new issue