mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-23 14:19:40 +00:00
Prevent crashes.
This commit is contained in:
parent
9c665ebf5b
commit
dde60c9fd0
@ -35,7 +35,7 @@ end sub
|
||||
'
|
||||
'Check if options updated and any reloading required
|
||||
sub audioOptionsClosed()
|
||||
if m.tvListOptions.audioStreamIndex <> m.top.selectedAudioStreamIndex
|
||||
if m.currentSelected <> invalid and m.tvListOptions.audioStreamIndex <> m.top.selectedAudioStreamIndex
|
||||
m.top.objects.items[m.currentSelected].selectedAudioStreamIndex = m.tvListOptions.audioStreamIndex
|
||||
end if
|
||||
end sub
|
||||
|
@ -88,7 +88,7 @@ sub Main (args as dynamic) as void
|
||||
itemNode = reportingNode.quickPlayNode
|
||||
if itemNode = invalid or itemNode.id = "" then return
|
||||
if itemNode.type = "Episode" or itemNode.type = "Movie" or itemNode.type = "Video"
|
||||
if itemNode.type = "Episode" and itemNode.selectedAudioStreamIndex > 1
|
||||
if itemNode.type = "Episode" and itemNode.selectedAudioStreamIndex <> invalid and itemNode.selectedAudioStreamIndex > 1
|
||||
video = CreateVideoPlayerGroup(itemNode.id, invalid, itemNode.selectedAudioStreamIndex)
|
||||
else
|
||||
video = CreateVideoPlayerGroup(itemNode.id)
|
||||
@ -107,7 +107,7 @@ sub Main (args as dynamic) as void
|
||||
' play episode
|
||||
' todo: create an episode page to link here
|
||||
video_id = selectedItem.id
|
||||
if selectedItem.selectedAudioStreamIndex > 1
|
||||
if selectedItem.selectedAudioStreamIndex <> invalid and selectedItem.selectedAudioStreamIndex > 1
|
||||
video = CreateVideoPlayerGroup(video_id, invalid, selectedItem.selectedAudioStreamIndex)
|
||||
else
|
||||
video = CreateVideoPlayerGroup(video_id)
|
||||
@ -170,7 +170,7 @@ sub Main (args as dynamic) as void
|
||||
' If you select a TV Episode from ANYWHERE, follow this flow
|
||||
node = getMsgPicker(msg, "picker")
|
||||
video_id = node.id
|
||||
if node.selectedAudioStreamIndex > 1
|
||||
if node.selectedAudioStreamIndex <> invalid and node.selectedAudioStreamIndex > 1
|
||||
video = CreateVideoPlayerGroup(video_id, invalid, node.selectedAudioStreamIndex)
|
||||
else
|
||||
video = CreateVideoPlayerGroup(video_id)
|
||||
|
Loading…
Reference in New Issue
Block a user