Merge pull request #600 from Zusukar/Invalid-Actor-Role
Check if Actor Role is invalid before using it
This commit is contained in:
commit
7042df5cd8
|
@ -49,7 +49,7 @@ sub onPeopleLoaded()
|
||||||
row = data.createChild("ContentNode")
|
row = data.createChild("ContentNode")
|
||||||
row.Title = tr("Cast & Crew")
|
row.Title = tr("Cast & Crew")
|
||||||
for each person in people
|
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
|
person.subTitle = "as " + person.json.Role
|
||||||
else
|
else
|
||||||
person.subTitle = person.json.Type
|
person.subTitle = person.json.Type
|
||||||
|
|
Loading…
Reference in New Issue
Block a user