Update of /cvsroot/freevo/freevo/src/tv/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12698
Modified Files:
tvtime.py
Log Message:
tv channel padding so that the big number in tvtime is what us cable channel it is.
channels must be in order to use this
Index: tvtime.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/plugins/tvtime.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** tvtime.py 21 Mar 2004 18:30:04 -0000 1.33
--- tvtime.py 22 Mar 2004 01:24:40 -0000 1.34
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.34 2004/03/22 01:24:40 mikeruelle
+ # tv channel padding so that the big number in tvtime is what us cable channel it
is. channels must be in order to use this
+ #
# Revision 1.33 2004/03/21 18:30:04 mikeruelle
# allow for some special options during setup
***************
*** 305,308 ****
--- 308,321 ----
mychan = mychan / 1000.0
mychan = "%.2fMHz" % mychan
+ if (hasattr(config, 'TV_PAD_CHAN_NUMBERS') and
config.TV_PAD_CHAN_NUMBERS and re.search('^\d+$', mychan)):
+ for i in range(c,int(mychan)):
+ fchild = doc.createElement('station')
+ fchild.setAttribute('channel',str(i))
+ fchild.setAttribute('band',myband)
+ fchild.setAttribute('name',str(i))
+ fchild.setAttribute('active','0')
+ fchild.setAttribute('position',str(i))
+ freevonode.appendChild(fchild)
+ c = c + 1
fchild = doc.createElement('station')
fchild.setAttribute('channel',mychan)
***************
*** 350,353 ****
--- 363,370 ----
mychan = mychan / 1000.0
mychan = "%.2fMHz" % mychan
+ if (hasattr(config, 'TV_PAD_CHAN_NUMBERS') and
config.TV_PAD_CHAN_NUMBERS and re.search('^\d+$', mychan)):
+ for i in range(c,int(mychan)):
+ fp.write(' <station name="%s" active="0" position="%s"
band="%s" channel="%s"/>\n' % (i,i,myband,i))
+ c = c + 1
if self.xmltv_supported:
fp.write(' <station name="%s" xmltvid="%s" active="1"
position="%s" band="%s" channel="%s"/>\n' % (cgi.escape(m[1]), m[0], c, myband,
mychan))
***************
*** 499,502 ****
--- 516,524 ----
cf_input = config.TV_VCR_INPUT_NUM
+ if hasattr(config, 'TV_PAD_CHAN_NUMBERS') and config.TV_PAD_CHAN_NUMBERS:
+ mychan = tuner_channel
+ else:
+ mychan = self.tuner_chidx
+
command = '%s -D %s -k -I %s -n %s -d %s -f %s -c %s -i %s' %
(config.TVTIME_CMD,
outputplugin,
***************
*** 505,509 ****
cf_device,
'freevo',
! self.tuner_chidx,
cf_input)
--- 527,531 ----
cf_device,
'freevo',
! mychan,
cf_input)
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog