preserve subtitle language labels

This commit is contained in:
dirtydishes 2026-05-25 13:48:22 -04:00
parent 0e751e4486
commit 1b3a2529a7
6 changed files with 328 additions and 1 deletions

View file

@ -329,6 +329,7 @@ final class VLCNativePlaybackBackend: NSObject, NativePlaybackBackend {
.filter { $0.id >= 0 }
.filter { !externalSubtitleBaselineTrackIDs.contains($0.id) }
.filter { externalSubtitleDisplayNamesByTrackID[$0.id] == nil }
.filter { SubtitleDisplayName.isGenericLabel($0.name) }
.sorted { $0.id < $1.id }
.forEach { track in
guard !pendingExternalSubtitleDisplayNames.isEmpty else {