mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-23 06:09:41 +00:00
Merge pull request #1952 from cewert/fix-movie-refresh-crash2
This commit is contained in:
commit
f36f975064
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user