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
|
# Process the album info
|
||||||
if kodiversion == 17:
|
if kodiversion == 17:
|
||||||
# Kodi Krypton
|
# Kodi Krypton
|
||||||
|
if not rating:
|
||||||
|
rating = 0.0
|
||||||
query = ' '.join((
|
query = ' '.join((
|
||||||
|
|
||||||
"UPDATE album",
|
"UPDATE album",
|
||||||
|
@ -2026,6 +2028,8 @@ class Music(Items):
|
||||||
year = API.getYear()
|
year = API.getYear()
|
||||||
resume, duration = API.getRuntime()
|
resume, duration = API.getRuntime()
|
||||||
rating = userdata['UserRating']
|
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 enabled, try to get the rating from file and/or emby
|
||||||
# if not self.directstream:
|
# if not self.directstream:
|
||||||
|
|
|
@ -369,7 +369,8 @@ def getKodiVideoDBPath():
|
||||||
"13": 78, # Gotham
|
"13": 78, # Gotham
|
||||||
"14": 90, # Helix
|
"14": 90, # Helix
|
||||||
"15": 93, # Isengard
|
"15": 93, # Isengard
|
||||||
"16": 99 # Jarvis
|
"16": 99, # Jarvis
|
||||||
|
"17":104 # Krypton
|
||||||
}
|
}
|
||||||
|
|
||||||
dbPath = xbmc.translatePath(
|
dbPath = xbmc.translatePath(
|
||||||
|
@ -385,7 +386,8 @@ def getKodiMusicDBPath():
|
||||||
"13": 46, # Gotham
|
"13": 46, # Gotham
|
||||||
"14": 48, # Helix
|
"14": 48, # Helix
|
||||||
"15": 52, # Isengard
|
"15": 52, # Isengard
|
||||||
"16": 56 # Jarvis
|
"16": 56, # Jarvis
|
||||||
|
"17": 60 # Krypton
|
||||||
}
|
}
|
||||||
|
|
||||||
dbPath = xbmc.translatePath(
|
dbPath = xbmc.translatePath(
|
||||||
|
|
Loading…
Reference in a new issue