mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 01:05:19 +03:00
Reduce allocations
This commit is contained in:
@@ -1378,7 +1378,7 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||
{
|
||||
var disc = tags.GetValueOrDefault(tagName);
|
||||
|
||||
if (!string.IsNullOrEmpty(disc) && int.TryParse(disc.Split('/')[0], out var discNum))
|
||||
if (!string.IsNullOrEmpty(disc) && int.TryParse(disc.AsSpan().LeftPart('/'), out var discNum))
|
||||
{
|
||||
return discNum;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user