mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-23 06:09:41 +00:00
validate we have data from api to prevent crash
This commit is contained in:
parent
d7c99f508f
commit
3002ce0a59
@ -4,9 +4,12 @@ import "pkg:/source/utils/config.bs"
|
||||
|
||||
sub setFields()
|
||||
json = m.top.json
|
||||
m.top.Type = "Person"
|
||||
|
||||
if json = invalid then return
|
||||
|
||||
m.top.id = json.id
|
||||
m.top.favorite = json.UserData.isFavorite
|
||||
m.top.Type = "Person"
|
||||
setPoster()
|
||||
end sub
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user