Fix role error

If trailer has people defined but not their roles.
This commit is contained in:
angelblue05 2018-07-09 17:35:48 -05:00
parent 269deec562
commit 2c2c6a0958

View file

@ -107,9 +107,9 @@ class API(object):
if person['Type'] == "Actor":
cast.append({
'name': person['Name'],
'role': person['Role'],
'role': person.get('Role', "Unknown"),
'order': len(cast) + 1,
'thumbnail': person['imageurl']
'thumbnail': person.get('imageurl')
})
return cast