mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-27 08:20:47 +00:00
Check if Actor Role is invalid before using it
To avoid crash to Home screen from: Type Mismatch. Operator "+" can't be applied to "String" and "Invalid". (runtime error &h18) in pkg:/components/extras/ExtrasRowList.brs(53)
This commit is contained in:
parent
474bc1c297
commit
790d7f6729
@ -49,7 +49,7 @@ sub onPeopleLoaded()
|
||||
row = data.createChild("ContentNode")
|
||||
row.Title = tr("Cast & Crew")
|
||||
for each person in people
|
||||
if person.json.type = "Actor"
|
||||
if person.json.type = "Actor" and person.json.Role <> invalid
|
||||
person.subTitle = "as " + person.json.Role
|
||||
else
|
||||
person.subTitle = person.json.Type
|
||||
|
Loading…
Reference in New Issue
Block a user