diff options
| author | 854562 <44002186+854562@users.noreply.github.com> | 2026-06-23 18:32:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-23 18:32:47 +0200 |
| commit | c632417dda8e3f9a2472ad0bdd43c69d38d95f62 (patch) | |
| tree | 6662e21cf9b0fac2af9952f2cb8fdbd8cc9691d3 /Jellyfin.Server.Implementations/Item | |
| parent | 94d53264111b2fee3824afeaa0eea69f6ecd7e83 (diff) | |
Fix SonarCloud warnings
Diffstat (limited to 'Jellyfin.Server.Implementations/Item')
| -rw-r--r-- | Jellyfin.Server.Implementations/Item/MediaStreamRepository.cs | 2 |
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; } |
