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,15 +2158,36 @@ class Music(Items):
artist_edb = emby_db.getItem_byId(artist_eid) artist_edb = emby_db.getItem_byId(artist_eid)
artistid = artist_edb[0] artistid = artist_edb[0]
finally: finally:
query = ( if self.kodiversion >= 17:
''' # Kodi Krypton
INSERT OR REPLACE INTO song_artist(idArtist, idSong, iOrder, strArtist) query = (
'''
VALUES (?, ?, ?, ?) INSERT OR REPLACE INTO song_artist(idArtist, idSong, idRole, iOrder, strArtist)
'''
) VALUES (?, ?, ?, ?, ?)
kodicursor.execute(query, (artistid, songid, index, artist_name)) '''
)
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)
VALUES (?, ?, ?, ?)
'''
)
kodicursor.execute(query, (artistid, songid, index, artist_name))
# Verify if album artist exists # Verify if album artist exists
album_artists = [] album_artists = []
for artist in item['AlbumArtists']: for artist in item['AlbumArtists']:

View file

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