Author: dmeyer
Date: Thu Mar 23 16:25:48 2006
New Revision: 8128

Modified:
   trunk/tvserver/src/recording.py

Log:
do not insert None is string value

Modified: trunk/tvserver/src/recording.py
==============================================================================
--- trunk/tvserver/src/recording.py     (original)
+++ trunk/tvserver/src/recording.py     Thu Mar 23 16:25:48 2006
@@ -99,13 +99,13 @@
         self.start_padding = config.record.start_padding
         self.stop_padding  = config.record.stop_padding
         for key, value in info.items():
-            if key in ('subtitle', 'description'):
+            if key in ('subtitle', 'description') and value:
                 setattr(self, key, Unicode(value))
-            elif key == 'url':
+            elif key == 'url' and value:
                 self.url = String(value)
             elif key in ('start-padding', 'stop_padding'):
                 setattr(self, key, int(value))
-            else:
+            elif value:
                 self.info[key] = Unicode(value)
 
         self.recorder = None


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to