Add comment

This commit is contained in:
1hitsong 2024-01-27 12:05:39 -05:00
parent 74021e7a2d
commit 3d55fba207

View File

@ -252,6 +252,7 @@ function defaultSubtitleTrackFromVid(videoID) as integer
selectedAudioLanguage = "" selectedAudioLanguage = ""
audioMediaStream = meta.json.MediaSources[0].MediaStreams[m.top.selectedAudioStreamIndex] audioMediaStream = meta.json.MediaSources[0].MediaStreams[m.top.selectedAudioStreamIndex]
' Ensure audio media stream is valid before using language property
if isValid(audioMediaStream) if isValid(audioMediaStream)
selectedAudioLanguage = audioMediaStream.Language ?? "" selectedAudioLanguage = audioMediaStream.Language ?? ""
end if end if