Merge pull request #600 from Zusukar/Invalid-Actor-Role

Check if Actor Role is invalid before using it
This commit is contained in:
Neil Burrows 2022-05-18 07:19:23 +01:00 committed by GitHub
commit 7042df5cd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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