fix exception in getSongTags when rating is none

This commit is contained in:
marcelveldt 2016-01-15 15:31:55 +01:00
parent d7d5e8b6e1
commit 82f117222a

View file

@ -83,7 +83,9 @@ def getSongTags(file):
if rating > 5: rating = (rating / 255) * 5 if rating > 5: rating = (rating / 255) * 5
else: else:
logMsg( "Not supported fileformat or unable to access file: %s" %(filename)) logMsg( "Not supported fileformat or unable to access file: %s" %(filename))
rating = int(round(rating,0))
if rating:
rating = int(round(rating,0))
except Exception as e: except Exception as e:
#file in use ? #file in use ?