mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
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,))
|
||||
currentvalue = int(round(float(kodicursor.fetchone()[0]),0))
|
||||
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