Fix for Krypton

This commit is contained in:
xnappo 2016-08-28 16:49:01 -05:00
parent dbec225072
commit 00c0556300

View file

@ -2304,7 +2304,10 @@ class Music(Items):
elif mediatype == "album":
# Process playstates
query = "UPDATE album SET iRating = ? WHERE idAlbum = ?"
if self.kodiversion >= 17:
query = "UPDATE album SET fRating = ? WHERE idAlbum = ?"
else:
query = "UPDATE album SET iRating = ? WHERE idAlbum = ?"
kodicursor.execute(query, (rating, kodiid))
emby_db.updateReference(itemid, checksum)