mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-24 22:10:19 +00:00
Fix role error
If trailer has people defined but not their roles.
This commit is contained in:
parent
269deec562
commit
2c2c6a0958
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user