Author: duncan
Date: Sun May 27 15:17:34 2007
New Revision: 9621

Modified:
   branches/rel-1/freevo/src/helpers/recordserver.py

Log:
Changed the plot in the fxd file to replace the newlines with xml codes


Modified: branches/rel-1/freevo/src/helpers/recordserver.py
==============================================================================
--- branches/rel-1/freevo/src/helpers/recordserver.py   (original)
+++ branches/rel-1/freevo/src/helpers/recordserver.py   Sun May 27 15:17:34 2007
@@ -1453,10 +1453,11 @@
         (filebase, fileext) = os.path.splitext(rec_prog.filename)
         fxd.setFxdFile(filebase, overwrite=TRUE)
 
+        desc = rec_prog.desc.replace('\n\n','\n').replace('\n','
')
         video = makeVideo('file', 'f1', os.path.basename(rec_prog.filename))
         fxd.setVideo(video)
         fxd.info['tagline'] = fxd.str2XML(rec_prog.sub_title)
-        fxd.info['plot'] = fxd.str2XML(rec_prog.desc)
+        fxd.info['plot'] = fxd.str2XML(desc)
         fxd.info['runtime'] = None
         fxd.info['recording_timestamp'] = str(time.time())
         fxd.info['year'] = time.strftime('%m-%d ' + config.TV_TIMEFORMAT,

-------------------------------------------------------------------------
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