mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 09:46: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,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