mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +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
|
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 ?
|
||||||
|
|
Loading…
Reference in a new issue