Fix music crash

This commit is contained in:
angelblue05 2016-01-16 16:31:42 -06:00
parent 30a9074f71
commit 2e5c0aa8f2

View file

@ -2225,7 +2225,7 @@ class Music(Items):
# Only proceed if we actually have a rating from the file # Only proceed if we actually have a rating from the file
if file_rating is None and currentvalue: if file_rating is None and currentvalue:
return (currentvalue, comment) return (currentvalue, comment)
elif file_rating is None and currentvalue is None: elif file_rating is None and not currentvalue:
return (emby_rating, comment) return (emby_rating, comment)
file_rating = int(round(file_rating,0)) file_rating = int(round(file_rating,0))