fix exception in getSongTags when rating is none
This commit is contained in:
parent
d7d5e8b6e1
commit
82f117222a
1 changed files with 3 additions and 1 deletions
|
@ -83,6 +83,8 @@ def getSongTags(file):
|
|||
if rating > 5: rating = (rating / 255) * 5
|
||||
else:
|
||||
logMsg( "Not supported fileformat or unable to access file: %s" %(filename))
|
||||
|
||||
if rating:
|
||||
rating = int(round(rating,0))
|
||||
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in a new issue