this should fix crashing when trying to record or add stuff with non
ascii chars to favs...
--- htdocs.orig/record.rpy 2004-03-29 02:53:26.000000000 +0000
+++ htdocs/record.rpy 2004-03-29 02:47:59.000000000 +0000
@@ -146,7 +146,7 @@
if start == '%s' % what.start and chan == '%s' % what.channel_id:
prog = what
- print 'want to remove prog: %s' % prog
+ print 'want to remove prog: %s' % String(prog)
ri.removeScheduledRecording(prog)
elif action == 'add':
(status, prog) = ri.findProg(chan, start)
@@ -162,13 +162,13 @@
'</b>'
)
)+\
- ( ' <i>(%s)</i>' % prog ) ] )
+ ( ' <i>(%s)</i>' % String(prog) ) ] )
return String(fv.res)
print 'RESULT: %s' % status
- print 'PROG: %s' % prog
+ print 'PROG: %s' % String(prog)
ri.scheduleRecording(prog)
--- htdocs.orig/edit_favorite.rpy 2004-03-29 02:53:26.000000000 +0000
+++ htdocs/edit_favorite.rpy 2004-03-29 02:47:53.000000000 +0000
@@ -153,11 +153,11 @@
time.localtime(int(start))) + \
'</b>'
)
- ) + (' <i>(%s)</i>' % prog) ] )
+ ) + (' <i>(%s)</i>' % String(prog)) ] )
return String(fv.res)
if prog:
- print 'PROG: %s' % prog
+ print 'PROG: %s' % String(prog)
priority = num_favorites + 1