Check selectedItem.json.userdata.PlaybackPositionTicks is valid
Fixes #1658
This commit is contained in:
parent
20d2583daf
commit
d7ca790d4b
|
@ -282,7 +282,19 @@ sub Main (args as dynamic) as void
|
|||
end if
|
||||
|
||||
' Display playback options dialog
|
||||
if selectedItem.json.userdata.PlaybackPositionTicks > 0
|
||||
showPlaybackOptionDialog = false
|
||||
|
||||
if isValid(selectedItem.json)
|
||||
if isValid(selectedItem.json.userdata)
|
||||
if isValid(selectedItem.json.userdata.PlaybackPositionTicks)
|
||||
if selectedItem.json.userdata.PlaybackPositionTicks > 0
|
||||
showPlaybackOptionDialog = true
|
||||
end if
|
||||
end if
|
||||
end if
|
||||
end if
|
||||
|
||||
if showPlaybackOptionDialog
|
||||
dialog.close = true
|
||||
m.global.queueManager.callFunc("hold", selectedItem)
|
||||
playbackOptionDialog(selectedItem.json.userdata.PlaybackPositionTicks, selectedItem.json)
|
||||
|
|
Loading…
Reference in New Issue
Block a user