Author: duncan
Date: Mon Dec  4 16:13:44 2006
New Revision: 8693

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

Log:
[ 1608017 ] channel id with %20 aka " " cause error in webserver
Fix to stop the crash but not the problem


Modified: branches/rel-1/freevo/src/www/htdocs/record.rpy
==============================================================================
--- branches/rel-1/freevo/src/www/htdocs/record.rpy     (original)
+++ branches/rel-1/freevo/src/www/htdocs/record.rpy     Mon Dec  4 16:13:44 2006
@@ -66,12 +66,14 @@
             (status, recordings) = ri.getScheduledRecordings()
             progs = recordings.getProgramList()
     
+            prog = None
             for what in progs.values():
                 if start == '%s' % what.start and chan == '%s' % 
what.channel_id:
                     prog = what
 
-            print 'want to remove prog: %s' % String(prog)
-            ri.removeScheduledRecording(prog)
+            if prog:
+                print 'want to remove prog: %s' % String(prog)
+                ri.removeScheduledRecording(prog)
         elif action == 'add':
             (status, prog) = ri.findProg(chan, start)
 

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