Music: set default rating to 0, not NULL

This commit is contained in:
tomkat83 2016-03-28 10:40:30 +02:00
parent 2ff7f7fa5c
commit e73b467904

View file

@ -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 {