aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Item
diff options
context:
space:
mode:
author854562 <44002186+854562@users.noreply.github.com>2026-06-23 18:32:47 +0200
committerGitHub <noreply@github.com>2026-06-23 18:32:47 +0200
commitc632417dda8e3f9a2472ad0bdd43c69d38d95f62 (patch)
tree6662e21cf9b0fac2af9952f2cb8fdbd8cc9691d3 /Jellyfin.Server.Implementations/Item
parent94d53264111b2fee3824afeaa0eea69f6ecd7e83 (diff)
Fix SonarCloud warnings
Diffstat (limited to 'Jellyfin.Server.Implementations/Item')
-rw-r--r--Jellyfin.Server.Implementations/Item/MediaStreamRepository.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Item/MediaStreamRepository.cs b/Jellyfin.Server.Implementations/Item/MediaStreamRepository.cs
index b3c7fe131e..17cfdffe84 100644
--- a/Jellyfin.Server.Implementations/Item/MediaStreamRepository.cs
+++ b/Jellyfin.Server.Implementations/Item/MediaStreamRepository.cs
@@ -175,7 +175,7 @@ public class MediaStreamRepository : IMediaStreamRepository
var culture = _localization.FindLanguageInfo(dto.Language);
// Truncate at the first delimiter to avoid cluttered display names
dto.LocalizedLanguage = culture?.DisplayName is { } name
- ? name.Split(';', ',')[0].Trim()
+ ? name.Split([';', ','])[0].Trim()
: null;
}