mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2025-02-19 22:41:47 +00:00
add validation to prevent crash
This commit is contained in:
parent
8a15bf8870
commit
7405b7cdbe
@ -662,7 +662,7 @@ sub ReportPlayback(state = "update" as string)
|
||||
"PositionTicks": int(m.top.position) * 10000000&, 'Ensure a LongInteger is used
|
||||
"IsPaused": (m.top.state = "paused")
|
||||
}
|
||||
if m.top.content.live
|
||||
if isValid(m.top.content) and isValid(m.top.content.live) and m.top.content.live
|
||||
params.append({
|
||||
"MediaSourceId": m.top.transcodeParams.MediaSourceId,
|
||||
"LiveStreamId": m.top.transcodeParams.LiveStreamId
|
||||
|
Loading…
x
Reference in New Issue
Block a user