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