Update of /cvsroot/freevo/freevo/src/tv
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10296/src/tv
Modified Files:
edit_favorite.py
Log Message:
Use cached channel list.
Index: edit_favorite.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/edit_favorite.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** edit_favorite.py 5 Aug 2004 17:27:16 -0000 1.15
--- edit_favorite.py 14 Aug 2004 16:54:23 -0000 1.16
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.16 2004/08/14 16:54:23 rshortt
+ # Use cached channel list.
+ #
# Revision 1.15 2004/08/05 17:27:16 dischi
# Major (unfinished) tv update:
***************
*** 62,67 ****
import event as em
from record_types import Favorite
! # from epg_types import TvProgram
from view_favorites import ViewFavorites
--- 65,71 ----
import event as em
+ from channels import get_channels
from record_types import Favorite
! from pyepg.program import TvProgram
from view_favorites import ViewFavorites
***************
*** 119,125 ****
if not self.top: self.top = self.osd.height/2 - self.height/2
- # FIXME!!!!!!!!!!!!!!!!!!
- # guide = epg_xmltv.get_guide()
-
name = Label(_('Name')+':', self, Align.LEFT)
self.name_input = LetterBoxGroup(text=self.fav.name)
--- 123,126 ----
***************
*** 138,144 ****
i = 1
chan_index = 0
! for ch in guide.chan_list:
#if ch.id == self.fav.channel_id:
! if ch.displayname == self.fav.channel:
chan_index = i
i += 1
--- 139,145 ----
i = 1
chan_index = 0
! for ch in get_channels():
#if ch.id == self.fav.channel_id:
! if ch.name == self.fav.channel:
chan_index = i
i += 1
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog