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