mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-12-02 19:26:47 +00:00
Check video and position are both valid before reporting playback info
This commit is contained in:
parent
a17b93824e
commit
b6a772184b
@ -314,6 +314,9 @@ function getAudioInfo(meta as object) as object
|
||||
end function
|
||||
|
||||
function ReportPlayback(video, state = "update" as string)
|
||||
|
||||
if video = invalid or video.position = invalid then return void
|
||||
|
||||
params = {
|
||||
"PlaySessionId": video.PlaySessionId,
|
||||
"PositionTicks": int(video.position) * 10000000&, 'Ensure a LongInteger is used
|
||||
|
Loading…
Reference in New Issue
Block a user