diff --git a/src/renderer/helpers/player/utils.js b/src/renderer/helpers/player/utils.js index f25a3068a8c24..983a275bba2b3 100644 --- a/src/renderer/helpers/player/utils.js +++ b/src/renderer/helpers/player/utils.js @@ -214,7 +214,7 @@ export function repairInvidiousManifest(periods) { } // match YouTube's local API response with English - const languageNames = new Intl.DisplayNames('en-US', { type: 'language' }) + const languageNames = new Intl.DisplayNames('en-US', { type: 'language', languageDisplay: 'standard' }) for (const audioAdaptationSet of audioAdaptationSets) { // Invidious adds a label to every audio stream with it's bitrate @@ -273,6 +273,7 @@ export function repairInvidiousManifest(periods) { labelParts.push('original') break case 'dubbed': + case 'dubbed-auto': role = 'dub' break case 'descriptive': diff --git a/src/renderer/views/Watch/Watch.js b/src/renderer/views/Watch/Watch.js index 082ef53682cd8..3b1e3e2b38ce5 100644 --- a/src/renderer/views/Watch/Watch.js +++ b/src/renderer/views/Watch/Watch.js @@ -1387,7 +1387,7 @@ export default defineComponent({ if (localFormat.has_audio) { audioFormats.push(localFormat) - if (localFormat.is_dubbed || localFormat.is_descriptive || localFormat.is_secondary) { + if (localFormat.is_dubbed || localFormat.is_descriptive || localFormat.is_secondary || localFormat.is_auto_dubbed) { hasMultipleAudioTracks = true } } @@ -1397,7 +1397,7 @@ export default defineComponent({ if (hasMultipleAudioTracks) { // match YouTube's local API response with English - const languageNames = new Intl.DisplayNames('en-US', { type: 'language' }) + const languageNames = new Intl.DisplayNames('en-US', { type: 'language', languageDisplay: 'standard' }) for (const format of audioFormats) { this.generateAudioTrackFieldInvidious(format, languageNames) } @@ -1435,6 +1435,9 @@ export default defineComponent({ } else if (format.is_secondary) { type = ' secondary' idNumber = 6 + } else if (format.is_auto_dubbed) { + type = '' + idNumber = 10 } else { type = ' alternative' idNumber = -1