diff --git a/resources/lib/itemtypes.py b/resources/lib/itemtypes.py index 8ccaa10a..ccacf3b1 100644 --- a/resources/lib/itemtypes.py +++ b/resources/lib/itemtypes.py @@ -1859,6 +1859,8 @@ class Music(Items): # Process the album info if kodiversion == 17: # Kodi Krypton + if not rating: + rating = 0.0 query = ' '.join(( "UPDATE album", @@ -2043,6 +2045,8 @@ class Music(Items): year = API.getYear() resume, duration = API.getRuntime() rating = userdata['UserRating'] + if not rating and kodiversion == 17: + rating = 0.0 #if enabled, try to get the rating from file and/or emby # if not self.directstream: diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 832c926a..bf1b4a4b 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -354,7 +354,8 @@ def getKodiVideoDBPath(): "13": 78, # Gotham "14": 90, # Helix "15": 93, # Isengard - "16": 99 # Jarvis + "16": 99, # Jarvis + "17":104 # Krypton } dbPath = xbmc.translatePath( @@ -370,7 +371,8 @@ def getKodiMusicDBPath(): "13": 46, # Gotham "14": 48, # Helix "15": 52, # Isengard - "16": 56 # Jarvis + "16": 56, # Jarvis + "17": 60 # Krypton } dbPath = xbmc.translatePath(