Fix people

Scenario where actor doesn't have a role defined in the metadata.
This commit is contained in:
angelblue05 2015-12-25 21:41:28 -06:00
parent 9959806f5b
commit 0e78089aad

View file

@ -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 = (