commit be7895e5826f6c262b810a1bdb0f6dbf80e64bcb
Author: Elan Ruusamäe <[email protected]>
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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to