Update of /cvsroot/freevo/freevo/src/config
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20703/src/config
Modified Files:
channels.py
Log Message:
Added config.TV_CHANNELS_DISPLAY_FORMAT to control the display format of
the channels as a general rule. This defaults to the name of the channel
but many users like to see the channel number / access id / tuner id also.
Index: channels.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/config/channels.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** channels.py 13 Dec 2004 01:39:02 -0000 1.7
--- channels.py 22 Dec 2004 02:12:52 -0000 1.8
***************
*** 42,45 ****
--- 42,46 ----
log = logging.getLogger('config')
+
def add_uri(channel, uri):
"""
***************
*** 111,114 ****
--- 112,116 ----
c.get_uri = get_uri
c.player = player
+
if isinstance(c.access_id, (list, tuple)):
for a_id in c.access_id:
***************
*** 117,120 ****
--- 119,131 ----
add_uri(c, c.access_id)
+ chan_display_opts = {
+ 'id' : c.id,
+ 'tunerid' : c.access_id,
+ 'name' : c.name
+ }
+
+ c.title = config.TV_CHANNELS_DISPLAY_FORMAT % chan_display_opts
+
+
# add all possible channels to the cards
for card in config.TV_CARDS:
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog