diff --git a/api/src/processing/services/youtube.js b/api/src/processing/services/youtube.js index 94eab2b0..e3265b33 100644 --- a/api/src/processing/services/youtube.js +++ b/api/src/processing/services/youtube.js @@ -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) {