Lower lever changes for Krypton

Not modifying utils.py yet, just putting in low level version
placeholders and minor music rating change for Krypton change.
This commit is contained in:
xnappo 2016-01-23 09:45:31 -06:00
parent 049c304f8b
commit 07d03781a2
2 changed files with 39 additions and 28 deletions

View file

@ -1310,8 +1310,8 @@ class TVShows(Items):
self.logMsg("UPDATE episode itemid: %s - Title: %s" % (itemid, title), 1)
# Update the movie entry
if kodiversion == 16:
# Kodi Jarvis
if kodiversion in (16, 17):
# Kodi Jarvis, Krypton
query = ' '.join((
"UPDATE episode",
@ -1349,8 +1349,8 @@ class TVShows(Items):
fileid = kodi_db.addFile(filename, pathid)
# Create the episode entry
if kodiversion == 16:
# Kodi Jarvis
if kodiversion in (16, 17):
# Kodi Jarvis, Krypton
query = (
'''
INSERT INTO episode(
@ -1724,7 +1724,7 @@ class Music(Items):
# Process the artist
if kodiversion == 16:
if self.kodiversion in (16, 17):
query = ' '.join((
"UPDATE artist",
@ -1811,7 +1811,18 @@ class Music(Items):
# Process the album info
if kodiversion == 16:
if kodiversion == 17:
# Kodi Krypton
query = ' '.join((
"UPDATE album",
"SET strArtists = ?, iYear = ?, strGenres = ?, strReview = ?, strImage = ?,",
"iUserrating = ?, lastScraped = ?, strReleaseType = ?",
"WHERE idAlbum = ?"
))
kodicursor.execute(query, (artistname, year, genre, bio, thumb, rating, lastScraped,
"album", albumid))
elif kodiversion == 16:
# Kodi Jarvis
query = ' '.join((
@ -2032,8 +2043,8 @@ class Music(Items):
# No album found, create a single's album
kodicursor.execute("select coalesce(max(idAlbum),0) from album")
albumid = kodicursor.fetchone()[0] + 1
if kodiversion == 16:
# Kodi Jarvis
if kodiversion in (16, 17):
# Kodi Jarvis, Krypton
query = (
'''
INSERT INTO album(idAlbum, strGenres, iYear, strReleaseType)
@ -2144,8 +2155,8 @@ class Music(Items):
else:
if addArtist:
artists_onalbum = " / ".join(artists_name)
if kodiversion == 16:
# Kodi Jarvis
if kodiversion in (16, 17):
# Kodi Jarvis, Krypton
query = "UPDATE album SET strArtists = ? WHERE idAlbum = ?"
kodicursor.execute(query, (artists_onalbum, albumid))
elif kodiversion == 15: