Author: duncan
Date: Mon Mar 17 09:23:05 2008
New Revision: 10543
Log:
Fix for non-ascii characters in the search results
Modified:
branches/rel-1/freevo/src/tv/epg_types.py
branches/rel-1/freevo/src/tv/programitem.py
Modified: branches/rel-1/freevo/src/tv/epg_types.py
==============================================================================
--- branches/rel-1/freevo/src/tv/epg_types.py (original)
+++ branches/rel-1/freevo/src/tv/epg_types.py Mon Mar 17 09:23:05 2008
@@ -44,13 +44,13 @@
"""
def __init__(self, channel_id='', start=0, pdc_start=0, stop=0, title='',
sub_title='', desc='', categories=[], ratings={}):
_debug_('TvProgram.__init__(channel_id=%r, start=%r, stop=%r,
title=%r)' % (channel_id, start, stop, title), 1)
- self.title = title
self.channel_id = channel_id
- self.desc = desc
- self.sub_title = sub_title
self.start = start
self.pdc_start = pdc_start
self.stop = stop
+ self.title = title
+ self.desc = desc
+ self.sub_title = sub_title
self.ratings = ratings
self.advisories = []
self.categories = categories
Modified: branches/rel-1/freevo/src/tv/programitem.py
==============================================================================
--- branches/rel-1/freevo/src/tv/programitem.py (original)
+++ branches/rel-1/freevo/src/tv/programitem.py Mon Mar 17 09:23:05 2008
@@ -1,8 +1,8 @@
# -*- coding: iso-8859-1 -*-
# -----------------------------------------------------------------------
-# guide_ProgramItem - Information and actions for TvPrograms.
+# Information and actions for TvPrograms.
# -----------------------------------------------------------------------
-# $Id:
+# $Id$
#
# Todo:
# Notes:
@@ -63,7 +63,7 @@
self.context= context
if hasattr(prog, 'name'): self.name = self.title = prog.name
- if hasattr(prog, 'title'): self.title = self.name = prog.title
+ if hasattr(prog, 'title'): self.title = self.name = Unicode(prog.title)
if hasattr(prog, 'sub_title'): self.sub_title = prog.sub_title
if hasattr(prog, 'desc'): self.description = prog.desc
if hasattr(prog, 'categories'):self.categories = prog.categories
@@ -275,10 +275,8 @@
pop.show()
# do the search
(status, matches) = self.recordclient.findMatchesNow(self.title)
- # we are ready -> kill the popup message
pop.destroy()
if status:
- # we have been successful!
items = []
_debug_('search found %s matches' % len(matches), 1)
# sort by start times
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog