Update of /cvsroot/freevo/freevo/src/tv
In directory sc8-pr-cvs1:/tmp/cvs-serv18019
Modified Files:
tv_util.py
Log Message:
Add a function to get the display name of a program's channel. Using this
helps with recent xmltv changes.
Index: tv_util.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/tv_util.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** tv_util.py 11 May 2003 22:40:49 -0000 1.1
--- tv_util.py 6 Jul 2003 19:27:02 -0000 1.2
***************
*** 7,10 ****
--- 7,14 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.2 2003/07/06 19:27:02 rshortt
+ # Add a function to get the display name of a program's channel. Using this
+ # helps with recent xmltv changes.
+ #
# Revision 1.1 2003/05/11 22:40:49 rshortt
# Helpers for tv and recording apps.
***************
*** 37,48 ****
#endif
! import sys, string
import time, os, string
- # Various utilities
import util
!
! # RegExp
! import re
DEBUG = 0
--- 41,49 ----
#endif
! import sys, string, re
import time, os, string
import util
! import epg_xmltv
DEBUG = 0
***************
*** 107,109 ****
--- 108,115 ----
size = size / 1073741824.0
return "%.3f GB" % size
+
+
+ def get_chan_displayname(prog):
+ guide = epg_xmltv.get_guide()
+ return guide.chan_dict.get(prog.channel_id).displayname
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog