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 = ""
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