Author: dmeyer
Date: Sun Apr 15 09:07:34 2007
New Revision: 9453

Modified:
   trunk/ui/share/skins/main/blurr.fxd
   trunk/ui/share/skins/main/info.fxd
   trunk/ui/src/video/videoitem.py

Log:
VideoItem[runtime] is identical with length:min, remove it

Modified: trunk/ui/share/skins/main/blurr.fxd
==============================================================================
--- trunk/ui/share/skins/main/blurr.fxd (original)
+++ trunk/ui/share/skins/main/blurr.fxd Sun Apr 15 09:07:34 2007
@@ -157,9 +157,9 @@
                         <text font="info value" expression="year"/>
                         <text font="info value">)</text>
                     </if>
-                    <if expression="runtime">
+                    <if expression="length:min">
                         <goto_pos x="30" mode="relative"/>
-                        <text font="info value" expression="runtime"/>
+                        <text font="info value" expression="length:min"/>
                         <newline/>
                     </if>
                 </item>

Modified: trunk/ui/share/skins/main/info.fxd
==============================================================================
--- trunk/ui/share/skins/main/info.fxd  (original)
+++ trunk/ui/share/skins/main/info.fxd  Sun Apr 15 09:07:34 2007
@@ -274,10 +274,10 @@
              </if>
            </if>
 
-           <if expression="runtime">
+           <if expression="length:min">
              <text width="140" font="info label">Runtime:</text>
              <goto_pos x="10" mode="relative"/>
-             <text font="info value" expression="runtime"/>
+             <text font="info value" expression="length:min"/>
              <newline/>
            </if>
            <text width="140" font="info label">Type:</text>
@@ -478,10 +478,10 @@
            <goto_pos y="10" mode="relative"/>
          </if>
 
-         <if expression="runtime">
+         <if expression="length:min">
            <text width="140" align="right" font="info value">Runtime:</text>
            <goto_pos x="10" mode="relative"/>
-           <text font="info value" expression="runtime"/>
+           <text font="info value" expression="length:min"/>
            <newline/>
          </if>
 

Modified: trunk/ui/src/video/videoitem.py
==============================================================================
--- trunk/ui/src/video/videoitem.py     (original)
+++ trunk/ui/src/video/videoitem.py     Sun Apr 15 09:07:34 2007
@@ -183,31 +183,6 @@
             else:
                 return '%d:%02d' % (int(elapsed / 60), int(elapsed % 60))
 
-        if key == 'runtime':
-            length = None
-
-            if self.info['runtime'] and self.info['runtime'] != 'None':
-                length = self.info['runtime']
-            elif self.info['length'] and self.info['length'] != 'None':
-                length = self.info['length']
-            if not length and hasattr(self, 'length'):
-                length = self.length
-            if not length:
-                return ''
-
-            if isinstance(length, int) or isinstance(length, float) or \
-                   isinstance(length, long):
-                length = str(int(round(length) / 60))
-            if length.find('min') == -1:
-                length = '%s min' % length
-            if length.find('/') > 0:
-                length = length[:length.find('/')].rstrip()
-            if length.find(':') > 0:
-                length = length[length.find(':')+1:]
-            if length == '0 min':
-                return ''
-            return length
-
         return MediaItem.__getitem__(self, key)
 
 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to