Duct tape a crash

This commit is contained in:
Nick Bisby 2019-03-19 21:36:59 -05:00
parent b49a4d614a
commit 65d85f956e
No known key found for this signature in database
GPG Key ID: F6E0C4E6D0B5EB36
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,6 @@
<field id="description" type="string" /> <field id="description" type="string" />
<field id="favorite" type="boolean" /> <field id="favorite" type="boolean" />
<field id="watched" type="boolean" /> <field id="watched" type="boolean" />
<field id="seasons" type="associativearray" />
<field id="full_data" type="associativearray" onChange="setFields" /> <field id="full_data" type="associativearray" onChange="setFields" />
</interface> </interface>
<script type="text/brightscript"> <script type="text/brightscript">

View File

@ -548,7 +548,8 @@ sub showVideoPlayer(video_id)
while true while true
msg = wait(0, port) msg = wait(0, port)
if type(msg) = "roSGScreenEvent" and msg.isScreenClosed() then if type(msg) = "roSGScreenEvent" and msg.isScreenClosed() then
' Sometimes video is already gone by this point return
' Video is already gone by this point
' TODO - add an event listener higher up that watches for closing ' TODO - add an event listener higher up that watches for closing
' so we can handle end of video a bit better ' so we can handle end of video a bit better
if video = invalid then return if video = invalid then return

View File

@ -17,6 +17,7 @@ function ItemSessionStop(id as String, params={})
end function end function
function make_params(id as string, params={}) function make_params(id as string, params={})
' TODO - probably make these mean something, or find out if we can omit them
new_params = { new_params = {
"VolumeLevel":100, "VolumeLevel":100,
"IsMuted":"false", "IsMuted":"false",
@ -38,6 +39,5 @@ function make_params(id as string, params={})
for each p in params.items() for each p in params.items()
new_params[p.key] = p.value new_params[p.key] = p.value
end for end for
print new_params
return new_params return new_params
end function end function