mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Fix people
Scenario where actor doesn't have a role defined in the metadata.
This commit is contained in:
parent
9959806f5b
commit
0e78089aad
1 changed files with 2 additions and 2 deletions
|
@ -251,7 +251,7 @@ class Kodidb_Functions():
|
||||||
finally:
|
finally:
|
||||||
# Link person to content
|
# Link person to content
|
||||||
if "Actor" in type:
|
if "Actor" in type:
|
||||||
role = person['Role']
|
role = person.get('Role')
|
||||||
query = (
|
query = (
|
||||||
'''
|
'''
|
||||||
INSERT OR REPLACE INTO actor_link(
|
INSERT OR REPLACE INTO actor_link(
|
||||||
|
@ -310,7 +310,7 @@ class Kodidb_Functions():
|
||||||
finally:
|
finally:
|
||||||
# Link person to content
|
# Link person to content
|
||||||
if "Actor" in type:
|
if "Actor" in type:
|
||||||
role = person['Role']
|
role = person.get('Role')
|
||||||
|
|
||||||
if "movie" in mediatype:
|
if "movie" in mediatype:
|
||||||
query = (
|
query = (
|
||||||
|
|
Loading…
Reference in a new issue