It looks like that should tweak the API endpoint to make handling this much simpler.
Once that PR is merged:
We use the default track by default.
We label all audio tracks with iso_code.
We sort the list of audio-tracks by iso_code.
I'd recommend using iso_code instead of displayName to preserve l10n. Since language names vary by language, but ISO codes are international. (Unless we have the means to localize the display name.)
Atm, there are some issues when channels use the audio-tracks feature on YouTube.
Namely:
I was looking into this, but found it'd be best to leave an issue open and come back to it later.
This is technically possible to resolve already, but it'll be best to wait for this PR to be merged/released first:
Namely, this snippet: https://github.com/iv-org/invidious/pull/3620/files#diff-2e15ef15316a1d99f1f4b03a18c0e632f5c55d2c661318aa2f8bfe5beace3589R104
It looks like that should tweak the API endpoint to make handling this much simpler.
Once that PR is merged:
default
track by default.iso_code
.iso_code
.I'd recommend using
iso_code
instead ofdisplayName
to preserve l10n. Since language names vary by language, but ISO codes are international. (Unless we have the means to localize the display name.)