Fix audio track display names (#820)
This commit is contained in:
1 parent
69fe737006
commit
2d9f3abe5d
2 files changed
+13
-2
No files matched your search
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- All audio track names are shown as "Other" in multi audio track videos
|
||||||
|
|
||||||
## [0.44.5] - 2026-01-17
|
## [0.44.5] - 2026-01-17
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -289,8 +289,13 @@ class DashManifest
|
|||||||
"contentType": "audio"
|
"contentType": "audio"
|
||||||
}
|
}
|
||||||
|
|
||||||
if IsAssociativeArray(firstFormat.audioTrack) and IsString(firstFormat.audioTrack.languageCode)
|
if IsAssociativeArray(firstFormat.audioTrack)
|
||||||
adaptationSetAttributes["lang"] = firstFormat.audioTrack.languageCode
|
if IsString(firstFormat.audioTrack.languageCode)
|
||||||
|
adaptationSetAttributes["lang"] = firstFormat.audioTrack.languageCode
|
||||||
|
else if IsString(firstFormat.audioTrack.id)
|
||||||
|
' ID is in the format "CODE.DIGIT" e.g. "en.4"
|
||||||
|
adaptationSetAttributes["lang"] = firstFormat.audioTrack.id.split(".")[0]
|
||||||
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
' Hoist common attributes
|
' Hoist common attributes
|
||||||
|
|||||||
Reference in new issue
Block a user