Skip to content

Commit

Permalink
prevent app crash when reloading movie details
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Oct 1, 2024
1 parent d7c99f5 commit b6f6728
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/Main.bs
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,13 @@ sub Main (args as dynamic) as void
currentScene.itemContent.json = api.users.GetItem(m.global.session.user.id, currentScene.itemContent.id)
movieMetaData = ItemMetaData(currentScene.itemContent.id)

' Redraw movie poster
currentScene.newPosterImageURI = movieMetaData.posterURL
if isValid(movieMetaData)
' Redraw movie poster
currentScene.newPosterImageURI = movieMetaData.posterURL

' Set updated starting point for the queue item
m.global.queueManager.callFunc("setTopStartingPoint", currentScene.itemContent.json.UserData.PlaybackPositionTicks)
' Set updated starting point for the queue item
m.global.queueManager.callFunc("setTopStartingPoint", currentScene.itemContent.json.UserData.PlaybackPositionTicks)
end if
end if

stopLoadingSpinner()
Expand Down

0 comments on commit b6f6728

Please sign in to comment.