We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5df5429 commit 61388abCopy full SHA for 61388ab
1 file changed
docs/source_api_Items.bs.html
@@ -30,10 +30,10 @@
30
params.EnableDirectPlay = false
31
end if
32
33
- if audioTrackIndex > -1 and isValid(videoMetadata) and isValid(videoMetadata.MediaStreams)
+ if audioTrackIndex > -1 and isValid(videoMetadata) and isValid(videoMetadata.json) and isValid(videoMetadata.json.MediaStreams)
34
' Find the audio stream with the matching Jellyfin index
35
selectedAudioStream = invalid
36
- for each stream in videoMetadata.MediaStreams
+ for each stream in videoMetadata.json.MediaStreams
37
if isValid(stream.index) and stream.index = audioTrackIndex
38
selectedAudioStream = stream
39
exit for
0 commit comments