Music: set default rating to 0, not NULL
This commit is contained in:
parent
2ff7f7fa5c
commit
e73b467904
1 changed files with 1 additions and 4 deletions
|
@ -1573,10 +1573,7 @@ class API():
|
|||
except:
|
||||
lastPlayedDate = None
|
||||
|
||||
try:
|
||||
userrating = int(item['userRating'])
|
||||
except:
|
||||
userrating = None
|
||||
userrating = int(item.get('userRating', 0))
|
||||
|
||||
resume, runtime = self.getRuntime()
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue