From 38f432a282c22c7a42e8329c6141cb19687fb297 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Thu, 18 Feb 2016 20:01:11 -0600 Subject: [PATCH] Add missing artist link for music videos --- resources/lib/kodidb_functions.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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()