Krypton prep

This commit is contained in:
xnappo 2016-07-31 12:15:38 -05:00
parent 5744f30c66
commit 133773d5b6
2 changed files with 31 additions and 10 deletions

View File

@ -2158,6 +2158,27 @@ class Music(Items):
artist_edb = emby_db.getItem_byId(artist_eid)
artistid = artist_edb[0]
finally:
if self.kodiversion >= 17:
# Kodi Krypton
query = (
'''
INSERT OR REPLACE INTO song_artist(idArtist, idSong, idRole, iOrder, strArtist)
VALUES (?, ?, ?, ?, ?)
'''
)
kodicursor.execute(query, (artistid, songid, 1, index, artist_name))
# May want to look into only doing this once?
query = (
'''
INSERT OR REPLACE INTO role(idRole, strRole)
VALUES (?, ?)
'''
)
kodicursor.execute(query, (1, 'Composer'))
else:
query = (
'''
INSERT OR REPLACE INTO song_artist(idArtist, idSong, iOrder, strArtist)

View File

@ -79,7 +79,7 @@ def getKodiVideoDBPath():
"14": 90, # Helix
"15": 93, # Isengard
"16": 99, # Jarvis
"17": 104 # Krypton
"17": 106 # Krypton
}
dbPath = xbmc.translatePath(