feat(tracks): add native track names with muxing.track_names

Set muxing.track_names to native to name an unnamed track in its own language (中文(繁體), Português (Portugal)) in place of English. The same script and region rules apply. --list, the muxed names and the REST API track_name follow the option. A test fixture resets the muxing options, so a local unshackle.yaml cannot change test results.
This commit is contained in:
imSp4rky
2026-10-24 12:43:50 -06:00
parent 1175035317
commit ecf17baffe
7 changed files with 87 additions and 6 deletions
+1 -1
View File
@@ -1013,7 +1013,7 @@ class Track:
return self.language
def get_track_name(self) -> Optional[str]:
"""Get the Track Name, or the English name of its language when the service set none."""
"""Get the Track Name, or the name of its language when the service set none."""
return self.name if self.name is not None else language_name(self.mux_language)
def get_drm_for_cdm(self, cdm: Optional[object]) -> Optional[DRM_T]: