From 0e78089aad8c15c17b7f04443d1b8f2711684119 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 25 Dec 2015 21:41:28 -0600 Subject: [PATCH] Fix people Scenario where actor doesn't have a role defined in the metadata. --- resources/lib/kodidb_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/kodidb_functions.py b/resources/lib/kodidb_functions.py index ea0ac19e..a5f6a5d0 100644 --- a/resources/lib/kodidb_functions.py +++ b/resources/lib/kodidb_functions.py @@ -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 = (