Update of /cvsroot/freevo/freevo/src/tv
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23893/src/tv
Modified Files:
channels.py
Log Message:
Add reference to config.TV_DEFAULT_SETTINGS and settings() to Channel class.
TODO: add logic to include something like TV_SETTINGS_ALTERNATES = { 'tv0' : 'tv1' }
to say that tv0 and tv1 have the same channels.
Index: channels.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/channels.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** channels.py 10 Aug 2004 19:37:22 -0000 1.22
--- channels.py 13 Aug 2004 02:08:25 -0000 1.23
***************
*** 10,13 ****
--- 10,18 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.23 2004/08/13 02:08:25 rshortt
+ # Add reference to config.TV_DEFAULT_SETTINGS and settings() to Channel class.
+ # TODO: add logic to include something like TV_SETTINGS_ALTERNATES = { 'tv0' : 'tv1'
}
+ # to say that tv0 and tv1 have the same channels.
+ #
# Revision 1.22 2004/08/10 19:37:22 dischi
# better pyepg integration
***************
*** 63,66 ****
--- 68,72 ----
import time
import stat
+ import string
import config
***************
*** 101,106 ****
"""
if freq.find(':') == -1:
! # FIXME: but this into the config file
! freq = 'dvb:%s' % freq
self.freq.append(freq)
--- 107,111 ----
"""
if freq.find(':') == -1:
! freq = '%s:%s' % (config.TV_DEFAULT_SETTINGS, freq)
self.freq.append(freq)
***************
*** 120,123 ****
--- 125,143 ----
return None
+
+ def settings(self):
+ """
+ return a dict of settings for this channel
+ """
+ settings = {}
+
+ for f in self.freq:
+ type = string.split(f, ':')[0]
+ settings[type] = config.TV_SETTINGS.get(type)
+
+ return settings
+
+
+
-------------------------------------------------------
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