mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix role error
If trailer has people defined but not their roles.
This commit is contained in:
parent
269deec562
commit
2c2c6a0958
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue