made it compatible to Krypton
initialize rating
This commit is contained in:
parent
5949988b68
commit
2d6361d9d6
2 changed files with 8 additions and 2 deletions
|
@ -1848,6 +1848,8 @@ class Music(Items):
|
|||
# Process the album info
|
||||
if kodiversion == 17:
|
||||
# Kodi Krypton
|
||||
if not rating:
|
||||
rating = 0.0
|
||||
query = ' '.join((
|
||||
|
||||
"UPDATE album",
|
||||
|
@ -2026,6 +2028,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:
|
||||
|
|
|
@ -369,7 +369,8 @@ def getKodiVideoDBPath():
|
|||
"13": 78, # Gotham
|
||||
"14": 90, # Helix
|
||||
"15": 93, # Isengard
|
||||
"16": 99 # Jarvis
|
||||
"16": 99, # Jarvis
|
||||
"17":104 # Krypton
|
||||
}
|
||||
|
||||
dbPath = xbmc.translatePath(
|
||||
|
@ -385,7 +386,8 @@ def getKodiMusicDBPath():
|
|||
"13": 46, # Gotham
|
||||
"14": 48, # Helix
|
||||
"15": 52, # Isengard
|
||||
"16": 56 # Jarvis
|
||||
"16": 56, # Jarvis
|
||||
"17": 60 # Krypton
|
||||
}
|
||||
|
||||
dbPath = xbmc.translatePath(
|
||||
|
|
Loading…
Reference in a new issue