Skip to content

Commit 61388ab

Browse files
committed
Update code docs
1 parent 5df5429 commit 61388ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/source_api_Items.bs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
params.EnableDirectPlay = false
3131
end if
3232

33-
if audioTrackIndex > -1 and isValid(videoMetadata) and isValid(videoMetadata.MediaStreams)
33+
if audioTrackIndex > -1 and isValid(videoMetadata) and isValid(videoMetadata.json) and isValid(videoMetadata.json.MediaStreams)
3434
' Find the audio stream with the matching Jellyfin index
3535
selectedAudioStream = invalid
36-
for each stream in videoMetadata.MediaStreams
36+
for each stream in videoMetadata.json.MediaStreams
3737
if isValid(stream.index) and stream.index = audioTrackIndex
3838
selectedAudioStream = stream
3939
exit for

0 commit comments

Comments
 (0)