mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
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,7 +83,9 @@ def getSongTags(file):
|
|||
if rating > 5: rating = (rating / 255) * 5
|
||||
else:
|
||||
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:
|
||||
#file in use ?
|
||||
|
|
Loading…
Reference in a new issue