diff --git a/source/Main.bs b/source/Main.bs index 97fe049fe..5d5565a68 100644 --- a/source/Main.bs +++ b/source/Main.bs @@ -248,16 +248,18 @@ sub Main (args as dynamic) as void currentScene = m.global.sceneManager.callFunc("getActiveScene") if isValid(currentScene) and isValid(currentScene.itemContent) and isValid(currentScene.itemContent.id) - ' Refresh movie detail data - currentScene.itemContent.json = api.users.GetItem(m.global.session.user.id, currentScene.itemContent.id) - movieMetaData = ItemMetaData(currentScene.itemContent.id) - - if isValid(movieMetaData) - ' Redraw movie poster - currentScene.newPosterImageURI = movieMetaData.posterURL - + data = api.users.GetItem(m.global.session.user.id, currentScene.itemContent.id) + if isValid(data) + currentScene.itemContent.json = data ' Set updated starting point for the queue item - m.global.queueManager.callFunc("setTopStartingPoint", currentScene.itemContent.json.UserData.PlaybackPositionTicks) + m.global.queueManager.callFunc("setTopStartingPoint", data.UserData.PlaybackPositionTicks) + + ' Refresh movie detail data + movieMetaData = ItemMetaData(currentScene.itemContent.id) + if isValid(movieMetaData) + ' Redraw movie poster + currentScene.newPosterImageURI = movieMetaData.posterURL + end if end if end if