aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Model.Tests/Entities/MediaStreamTests.cs
AgeCommit message (Collapse)Author
2026-01-05Fix zh-CN subtitle language displayZeusCraft10
The DisplayTitle property was using .NET's CultureInfo.GetCultures(NeutralCultures) to resolve language display names. Since zh-CN is a specific culture (not neutral), it would fall back to the base 'zh' code, resulting in generic 'Chinese' instead of 'Chinese (Simplified)'. This change adds a LocalizedLanguage property to MediaStream that gets populated via LocalizationManager.FindLanguageInfo() when streams are retrieved from the database. This leverages Jellyfin's existing iso6392.txt mappings which correctly map zh-CN to 'Chinese (Simplified)'. The same pattern is already used for other localized strings like LocalizedDefault and LocalizedExternal.
2023-12-18Fix testsBond_009
2022-10-07Add hearing impaired subtitle stream indicator (#7379)Joe Rogers
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2022-08-13Backport pull request #8212 from jellyfin/release-10.8.zSenorSmartyPants
Add resolution text for 384 sized video Original-merge: 7ffdde9a0b88f543a84fa8a3fa7487cbe8dda8b4 Merged-by: Cody Robibero <cody@robibe.ro> Backported-by: Joshua Boniface <joshua@boniface.me>
2022-07-20Backport pull request #8104 from jellyfin/release-10.8.zJoshua Boniface
Add resolution text output for more resolutions Authored-by: Shadowghost <Ghost_of_Stone@web.de> Merged-by: Bond-009 <bond.009@outlook.com> Original-merge: 2b46917dcf7af970dc95d4ef0bbfebac7a520d25
2022-03-10Add label for external audio/sub tracksJoe Rogers
2021-10-03Fix warning: Using directive is not required by the code and can be safely ↵KonH
removed (#2149)
2021-09-11Use TheoryData instead of MemberData and ClassDataianjazz246
2021-09-01Add subtitle format(codec) to stream display title (#5853)Mike
Co-authored-by: Michał Kurek <michal.kurek@mail.com>
2021-07-24Update tests/Jellyfin.Model.Tests/Entities/MediaStreamTests.csBond-009
Co-authored-by: Max Rumpf <max.rumpf1998@gmail.com>
2021-07-20Add tests for GetResolutionTextBond_009