Merge pull request #2 from gdachs/develop

made it compatible to Krypton
This commit is contained in:
croneter 2016-04-02 10:07:18 +02:00
commit d191500552
2 changed files with 8 additions and 2 deletions

View file

@ -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:

View file

@ -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(