[rhythmbox/wip/python3: 34/35] context: fix track duration formatting



commit 3cf8ac5d9a0a77078342ddac6ed14eb9438d748c
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sun Apr 21 09:37:05 2013 +1000

    context: fix track duration formatting

 plugins/context/tmpl/album-tmpl.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/context/tmpl/album-tmpl.html b/plugins/context/tmpl/album-tmpl.html
index a1b1f7b..6d6ef0e 100644
--- a/plugins/context/tmpl/album-tmpl.html
+++ b/plugins/context/tmpl/album-tmpl.html
@@ -10,7 +10,7 @@
         return re.sub(r'\([^\)]*\)', '', text)
 
     def sec2hms(time):
-        hr = time / 3600
+        hr = int(time / 3600)
         if hr > 0:
             time %= 3600
         mn = time / 60


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]