diff --git a/resources/lib/kodidb_functions.py b/resources/lib/kodidb_functions.py index 3929bb52..fc117d11 100644 --- a/resources/lib/kodidb_functions.py +++ b/resources/lib/kodidb_functions.py @@ -284,6 +284,17 @@ class Kodidb_Functions(): ''' ) cursor.execute(query, (actorid, kodiid, mediatype)) + + elif "Artist" in type: + query = ( + ''' + INSERT OR REPLACE INTO actor_link( + actor_id, media_id, media_type) + + VALUES (?, ?, ?) + ''' + ) + cursor.execute(query, (actorid, kodiid, mediatype)) # Kodi Helix else: query = ' '.join(( @@ -409,6 +420,17 @@ class Kodidb_Functions(): cursor.execute(query, (actorid, kodiid)) + elif "Artist" in type: + query = ( + ''' + INSERT OR REPLACE INTO artistlinkmusicvideo( + idArtist, idMVideo) + + VALUES (?, ?) + ''' + ) + cursor.execute(query, (actorid, kodiid)) + # Add person image to art table if thumb: arttype = type.lower()