Author: duncan
Date: Sat Oct 14 11:22:31 2006
New Revision: 8365

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

Log:
[ 1574292 ] Ignore non-ascii characters when scheduling favorites
I think that the problem here is that the programme and favourite titles needed 
encoding to utf-8
Also added at start up removal of old tv-lock files.


Modified: branches/rel-1-5/freevo/src/helpers/recordserver.py
==============================================================================
--- branches/rel-1-5/freevo/src/helpers/recordserver.py (original)
+++ branches/rel-1-5/freevo/src/helpers/recordserver.py Sat Oct 14 11:22:31 2006
@@ -24,7 +24,7 @@
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# ----------------------------------------------------------------------- */
+# -----------------------------------------------------------------------
 
 
 import sys, string, random, time, os, re, pwd, stat
@@ -634,8 +634,7 @@
         min_of_day = '%s' % ((lt[3]*60)+lt[4])
     
         for fav in favs.values():
-    
-            if prog.title.lower().find(fav.title.lower()) >= 0:
+            if 
prog.title.encode('utf-8').lower().find(fav.title.encode('utf-8').lower()) >= 0:
                 if fav.channel == 
tv_util.get_chan_displayname(prog.channel_id) \
                    or fav.channel == 'ANY':
                     if Unicode(fav.dow) == Unicode(dow) or Unicode(fav.dow) == 
u'ANY':
@@ -1047,6 +1046,12 @@
 if __name__ == '__main__':
     import traceback
     import time
+    import glob
+
+    locks = glob.glob(config.FREEVO_CACHEDIR + '/record.*')
+    for f in locks:
+        print 'Removed old record lock \"%s\"' % f
+        os.remove(f)
 
     while 1:
         try:

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to