Skip to content

Commit

Permalink
revert: "fix(toDash): Fix default audio stream for dubbed movie trail…
Browse files Browse the repository at this point in the history
…ers (#858)" (#896)

This reverts commit 0054690.
  • Loading branch information
absidue authored Feb 21, 2025
1 parent 2b42199 commit 4325717
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/StreamingInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,7 @@ function getTrackRoles(format: Format, has_drc_streams: boolean) {
}

const roles: ('main' | 'dub' | 'description' | 'enhanced-audio-intelligibility' | 'alternate')[] = [
// movie trailers can have a dubbed track as the only audio track so is_original is false but format.audio_track.audio_is_default is true
format.is_original || format.audio_track?.audio_is_default ? 'main' : 'alternate'
format.is_original ? 'main' : 'alternate'
];

if (format.is_dubbed || format.is_auto_dubbed)
Expand Down

0 comments on commit 4325717

Please sign in to comment.