diff --git a/components/ItemGrid/LoadVideoContentTask.bs b/components/ItemGrid/LoadVideoContentTask.bs index 547df55c..b2d4bcb9 100644 --- a/components/ItemGrid/LoadVideoContentTask.bs +++ b/components/ItemGrid/LoadVideoContentTask.bs @@ -252,6 +252,7 @@ function defaultSubtitleTrackFromVid(videoID) as integer selectedAudioLanguage = "" audioMediaStream = meta.json.MediaSources[0].MediaStreams[m.top.selectedAudioStreamIndex] + ' Ensure audio media stream is valid before using language property if isValid(audioMediaStream) selectedAudioLanguage = audioMediaStream.Language ?? "" end if