Author: dmeyer
Date: Mon Oct 17 20:29:40 2005
New Revision: 7737

Modified:
   trunk/freevo-ui/src/directory.py
   trunk/freevo-ui/src/plugin.py

Log:
repair errors when renaming freevo to freevo-ui

Modified: trunk/freevo-ui/src/directory.py
==============================================================================
--- trunk/freevo-ui/src/directory.py    (original)
+++ trunk/freevo-ui/src/directory.py    Mon Oct 17 20:29:40 2005
@@ -316,6 +316,24 @@
                 space='%s,%s' % (space / 1000, space % 1000)
             return space
 
+        if key == 'length':
+            try:
+                length = int(self.info['length'])
+            except ValueError:
+                return self.info['length']
+            except:
+                try:
+                    length = int(self.length)
+                except:
+                    return ''
+            if length == 0:
+                return ''
+            if length / 3600:
+                return '%d:%02d:%02d' % ( length / 3600, (length % 3600) / 60,
+                                          length % 60)
+            else:
+                return '%d:%02d' % (length / 60, length % 60)
+
         return Item.__getitem__(self, key)
 
 

Modified: trunk/freevo-ui/src/plugin.py
==============================================================================
--- trunk/freevo-ui/src/plugin.py       (original)
+++ trunk/freevo-ui/src/plugin.py       Mon Oct 17 20:29:40 2005
@@ -241,7 +241,7 @@
 VIDEO_PLAYER   = 'VIDEO_PLAYER'
 TV             = 'TV'
 RECORD         = 'RECORD'
-
+GAMES          = 'GAMES'
 
 def event(name, *args):
     """


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to