mirror of
https://github.com/wukko/cobalt.git
synced 2025-03-13 04:38:51 +01:00
api/youtube: make sure language exists when checking for hls dubs
oops
This commit is contained in:
parent
8f89c7f412
commit
406ac7613c
1 changed files with 1 additions and 1 deletions
|
@ -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