Add missing artist link for music videos

This commit is contained in:
angelblue05 2016-02-18 20:01:11 -06:00
parent 06cd0e981c
commit 38f432a282
1 changed files with 22 additions and 0 deletions

View File

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