Skip to content

Commit

Permalink
Invidious API: Add support for auto-dubbed audio tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue committed Oct 26, 2024
1 parent eaef9a0 commit 50ec800
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/renderer/helpers/player/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ export function repairInvidiousManifest(periods) {
labelParts.push('original')
break
case 'dubbed':
case 'dubbed-auto':
role = 'dub'
break
case 'descriptive':
Expand Down
5 changes: 4 additions & 1 deletion src/renderer/views/Watch/Watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,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
}
}
Expand Down Expand Up @@ -1432,6 +1432,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
Expand Down

0 comments on commit 50ec800

Please sign in to comment.