for some of them the dub if the default
This commit is contained in:
parent
eeec2f0c08
commit
7f05f4d0dc
|
@ -140,10 +140,7 @@ export async function createSabrStream(
|
||||||
const sabrFormats = playerResponse.streaming_data?.adaptive_formats
|
const sabrFormats = playerResponse.streaming_data?.adaptive_formats
|
||||||
.filter(f => {
|
.filter(f => {
|
||||||
if (f.is_auto_dubbed) return false
|
if (f.is_auto_dubbed) return false
|
||||||
if (f.audio_track) {
|
if (f.audio_track && !f.audio_track.display_name.endsWith('original')) return false
|
||||||
if (!f.audio_track.audio_is_default) return false
|
|
||||||
if (!f.audio_track.display_name.endsWith('original')) return false
|
|
||||||
}
|
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
.map(buildSabrFormat) || [];
|
.map(buildSabrFormat) || [];
|
||||||
|
|
Loading…
Reference in New Issue