Fix for Krypton

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

View file

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