mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Add missing artist link for music videos
This commit is contained in:
parent
06cd0e981c
commit
38f432a282
1 changed files with 22 additions and 0 deletions
|
@ -284,6 +284,17 @@ class Kodidb_Functions():
|
||||||
'''
|
'''
|
||||||
)
|
)
|
||||||
cursor.execute(query, (actorid, kodiid, mediatype))
|
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
|
# Kodi Helix
|
||||||
else:
|
else:
|
||||||
query = ' '.join((
|
query = ' '.join((
|
||||||
|
@ -409,6 +420,17 @@ class Kodidb_Functions():
|
||||||
|
|
||||||
cursor.execute(query, (actorid, kodiid))
|
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
|
# Add person image to art table
|
||||||
if thumb:
|
if thumb:
|
||||||
arttype = type.lower()
|
arttype = type.lower()
|
||||||
|
|
Loading…
Reference in a new issue