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:
|
||||
# Link person to content
|
||||
if "Actor" in type:
|
||||
role = person['Role']
|
||||
role = person.get('Role')
|
||||
query = (
|
||||
'''
|
||||
INSERT OR REPLACE INTO actor_link(
|
||||
|
@ -310,7 +310,7 @@ class Kodidb_Functions():
|
|||
finally:
|
||||
# Link person to content
|
||||
if "Actor" in type:
|
||||
role = person['Role']
|
||||
role = person.get('Role')
|
||||
|
||||
if "movie" in mediatype:
|
||||
query = (
|
||||
|
|
Loading…
Reference in a new issue