[packages/griffith] cast rating to int
glen
glen at pld-linux.org
Tue Jul 28 21:15:37 CEST 2015
commit be7895e5826f6c262b810a1bdb0f6dbf80e64bcb
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Jul 28 22:15:31 2015 +0300
cast rating to int
Kodi.py | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/Kodi.py b/Kodi.py
index 98f1566..6438981 100644
--- a/Kodi.py
+++ b/Kodi.py
@@ -199,6 +199,10 @@ class ImportPlugin(IP):
if notes:
details['notes'] = "\n".join(notes)
+ # rating needs to be int or tellico will show it as 0 until movie is saved over
+ if details['rating']:
+ details['rating'] = int(float(details['rating']))
+
# handle poster
# take first <thumb aspect="poster"> element
posters = item.xpath('thumb[@aspect="poster"]')
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/griffith.git/commitdiff/be7895e5826f6c262b810a1bdb0f6dbf80e64bcb
More information about the pld-cvs-commit
mailing list