mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +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) {
|
||||
const dubbedAudio = selected.audio.find(i =>
|
||||
i.language.startsWith(o.dubLang)
|
||||
i.language?.startsWith(o.dubLang)
|
||||
);
|
||||
|
||||
if (dubbedAudio && !dubbedAudio.isDefault) {
|
||||
|
|
Loading…
Reference in a new issue