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:
|
except:
|
||||||
lastPlayedDate = None
|
lastPlayedDate = None
|
||||||
|
|
||||||
try:
|
userrating = int(item.get('userRating', 0))
|
||||||
userrating = int(item['userRating'])
|
|
||||||
except:
|
|
||||||
userrating = None
|
|
||||||
|
|
||||||
resume, runtime = self.getRuntime()
|
resume, runtime = self.getRuntime()
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue