Update of /cvsroot/freevo/freevo/skins/aubin1
In directory sc8-pr-cvs1:/tmp/cvs-serv609/skins/aubin1
Modified Files:
aubin1_tv.py
Log Message:
Two small changes:
o highlight an timeslot when a show is scheduled (in case you have multiple
pages of channels) so you can tell at a glance if a recording time is free.
o allow multiple words to be specified with tvgrep. This should have been
obvious.
Things like:
tvgrep -listing family\ guy
or
tvgrep -listing family guy
or
tvgrep -listing "family guy"
will all work.
Before, it would have just searched for "family" which takes a long time and
produces too many results.
Index: aubin1_tv.py
===================================================================
RCS file: /cvsroot/freevo/freevo/skins/aubin1/aubin1_tv.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** aubin1_tv.py 7 Mar 2003 17:21:19 -0000 1.1
--- aubin1_tv.py 14 Mar 2003 04:56:53 -0000 1.2
***************
*** 10,13 ****
--- 10,35 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.2 2003/03/14 04:56:53 outlyer
+ # Two small changes:
+ #
+ # o highlight an timeslot when a show is scheduled (in case you have multiple
+ # pages of channels) so you can tell at a glance if a recording time is free.
+ #
+ # o allow multiple words to be specified with tvgrep. This should have been
+ # obvious.
+ #
+ # Things like:
+ #
+ # tvgrep -listing family\ guy
+ # or
+ # tvgrep -listing family guy
+ # or
+ # tvgrep -listing "family guy"
+ #
+ # will all work.
+ #
+ # Before, it would have just searched for "family" which takes a long time and
+ # produces too many results.
+ #
# Revision 1.1 2003/03/07 17:21:19 outlyer
# Highlight shows being recorded in red; I would have put this in the skin, but
***************
*** 246,251 ****
drawroundbox(x0, y, x1, y+ str_h_head + 2 * val.spacing,
val.head.bgcolor, 1, val.border_color,
radius=val.head.radius)
! DrawTextFramed(time.strftime("%H:%M",time.localtime(to_listing[0][i+1])),
settings2, x0 + val.spacing, y + val.spacing, x1-x0,
str_h_head)
--- 268,286 ----
drawroundbox(x0, y, x1, y+ str_h_head + 2 * val.spacing,
val.head.bgcolor, 1, val.border_color,
radius=val.head.radius)
+ recnow = 0
+ for recprogs in recordingshows:
+ channel_id,start,stop = recprogs
! if (start >= to_listing[0][i+1]) and (stop <=
(to_listing[0][i+1]+(col_time*60))):
! recnow = 1
!
! if recnow:
! stack = settings2.color
! settings2.color = 0xffff66 #0xdd9999
! DrawTextFramed(time.strftime("%I:%M
%P",time.localtime(to_listing[0][i+1])),
! settings2, x0 + val.spacing, y + val.spacing, x1-x0,
str_h_head)
! settings2.color = stack
! else:
! DrawTextFramed(time.strftime("%I:%M
%P",time.localtime(to_listing[0][i+1])),
settings2, x0 + val.spacing, y + val.spacing, x1-x0,
str_h_head)
***************
*** 396,400 ****
vals = s.strip().split(',')
! start_time = time.mktime(time.strptime(vals[0], '%Y-%m-%d %H:%M:%S'))
stop_time = start_time+int(vals[1])
channel_id = vals[3]
--- 431,438 ----
vals = s.strip().split(',')
! try:
! start_time = time.mktime(time.strptime(vals[0], '%Y-%m-%d %H:%M:%S'))
! except ValueError:
! continue
stop_time = start_time+int(vals[1])
channel_id = vals[3]
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog