mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-01 12:46:07 +00:00
api/youtube: make sure language exists when checking for hls dubs
oops
This commit is contained in:
parent
8f89c7f412
commit
406ac7613c
|
@ -271,7 +271,7 @@ export default async function(o) {
|
||||||
|
|
||||||
if (o.dubLang) {
|
if (o.dubLang) {
|
||||||
const dubbedAudio = selected.audio.find(i =>
|
const dubbedAudio = selected.audio.find(i =>
|
||||||
i.language.startsWith(o.dubLang)
|
i.language?.startsWith(o.dubLang)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (dubbedAudio && !dubbedAudio.isDefault) {
|
if (dubbedAudio && !dubbedAudio.isDefault) {
|
||||||
|
|
Loading…
Reference in a new issue