Author: duncan
Date: Sat Jan  6 00:14:48 2007
New Revision: 8937

Modified:
   branches/rel-1/freevo/src/www/htdocs/fileinfo.rpy

Log:
Web server does not like blank lines, so remove them


Modified: branches/rel-1/freevo/src/www/htdocs/fileinfo.rpy
==============================================================================
--- branches/rel-1/freevo/src/www/htdocs/fileinfo.rpy   (original)
+++ branches/rel-1/freevo/src/www/htdocs/fileinfo.rpy   Sat Jan  6 00:14:48 2007
@@ -159,7 +159,11 @@
             for b in a.children:
                 if b.name == 'info':
                     for c in b.children:
-                        
fxd_info.update({str(c.name).replace('\r',''):str(c.first_cdata).replace('\r','')})
+                        name = c.name.replace('\r', '').replace('\n', ' ')
+                        first_cdata = c.first_cdata.replace('\r', 
'').replace('\n', ' ')
+                        if first_cdata == '' or first_cdata == 'None':
+                            continue
+                        fxd_info.update({str(name):str(first_cdata)})
         return fxd_info
 
     def convert_dir(self, dir_str):

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to