mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16: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":
|
if person['Type'] == "Actor":
|
||||||
cast.append({
|
cast.append({
|
||||||
'name': person['Name'],
|
'name': person['Name'],
|
||||||
'role': person['Role'],
|
'role': person.get('Role', "Unknown"),
|
||||||
'order': len(cast) + 1,
|
'order': len(cast) + 1,
|
||||||
'thumbnail': person['imageurl']
|
'thumbnail': person.get('imageurl')
|
||||||
})
|
})
|
||||||
|
|
||||||
return cast
|
return cast
|
||||||
|
|
Loading…
Reference in a new issue