mirror of
https://github.com/dirtydishes/dreamio.git
synced 2026-06-06 13:37:24 +00:00
preserve subtitle language labels
This commit is contained in:
parent
0e751e4486
commit
1b3a2529a7
6 changed files with 328 additions and 1 deletions
|
|
@ -472,6 +472,22 @@ struct StreamResolverTests {
|
|||
)),
|
||||
"movie.es"
|
||||
)
|
||||
assertEqual(
|
||||
SubtitleDisplayName.displayName(for: SubtitleCandidate(
|
||||
url: URL(string: "https://opensubtitles.example.test/download/subtitle.srt")!,
|
||||
label: "Track 3",
|
||||
language: "nld"
|
||||
)),
|
||||
"Dutch"
|
||||
)
|
||||
assertEqual(
|
||||
SubtitleDisplayName.displayName(for: SubtitleCandidate(
|
||||
url: URL(string: "https://opensubtitles.example.test/download/subtitle.srt")!,
|
||||
label: "Track 4",
|
||||
language: "dan"
|
||||
)),
|
||||
"Danish"
|
||||
)
|
||||
}
|
||||
|
||||
private static func testSubtitleDisplayNameUsesPreservedNamesForGenericVLCTracks() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue