fix crash on sync when song rating is null in db (if user didn't reset the db)
resync is advised however to make sure the rating gets scraped initially
This commit is contained in:
parent
72d279a3a9
commit
5640408523
1 changed files with 3 additions and 1 deletions
|
@ -2222,7 +2222,9 @@ class Music(Items):
|
|||
else:
|
||||
query = "SELECT rating FROM song WHERE idSong = ?"
|
||||
kodicursor.execute(query, (kodiid,))
|
||||
try:
|
||||
currentvalue = int(round(float(kodicursor.fetchone()[0]),0))
|
||||
except: currentvalue = None
|
||||
|
||||
# Only proceed if we actually have a rating from the file
|
||||
if file_rating is None and currentvalue:
|
||||
|
|
Loading…
Reference in a new issue