forked from kenzuya/unshackle
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:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user