Update of /cvsroot/freevo/freevo/src/www/htdocs
In directory sc8-pr-cvs1:/tmp/cvs-serv1894
Modified Files:
index.rpy
Log Message:
Some changes from Mike Ruelle that let you know if your xmltv data is out
of date and also tell you if something is recording (and what it is).
Index: index.rpy
===================================================================
RCS file: /cvsroot/freevo/freevo/src/www/htdocs/index.rpy,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** index.rpy 29 May 2003 11:40:42 -0000 1.5
--- index.rpy 26 Jul 2003 17:15:15 -0000 1.6
***************
*** 12,15 ****
--- 12,19 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.6 2003/07/26 17:15:15 rshortt
+ # Some changes from Mike Ruelle that let you know if your xmltv data is out
+ # of date and also tell you if something is recording (and what it is).
+ #
# Revision 1.5 2003/05/29 11:40:42 rshortt
# Applied a patch by Mike Ruelle that adds info about disk free, scheduled
recordings, and shows the time.
***************
*** 61,64 ****
--- 65,69 ----
from web_types import HTMLResource, FreevoResource
import util
+ import tv_util
import config
***************
*** 81,87 ****
fv.res += '<p><font color="white" >The recording server is up and
running.</font></p>'
(got_schedule, recordings) = record_client.getScheduledRecordings()
if got_schedule:
! num_sched_progs = len(recordings.getProgramList().values())
if num_sched_progs == 1:
fv.res += '<p><font color="white" >One program scheduled to
record.</font></p>'
--- 86,110 ----
fv.res += '<p><font color="white" >The recording server is up and
running.</font></p>'
+ listexpire = tv_util.when_listings_expire()
+ if listexpire == 1:
+ fv.res += '<p><font color="red" >Notice: Your listings expire in 1
hour.</font></p>'
+ elif listexpire < 12:
+ fv.res += '<p><font color="red" >Notice: Your listings expire in %s
hours.</font></p>' % listexpire
+ else:
+ fv.res += '<p><font color="white" >Your listings are up to
date.</font></p>'
+
(got_schedule, recordings) = record_client.getScheduledRecordings()
if got_schedule:
! progl = recordings.getProgramList().values()
! f = lambda a, b: cmp(a.start, b.start)
! progl.sort(f)
! for prog in progl:
! try:
! if prog.isRecording == TRUE:
! fv.res += '<p><font color="red" >Now Recording
%s.</font></p>' % prog.title
! break
! except:
! pass
! num_sched_progs = len(progl)
if num_sched_progs == 1:
fv.res += '<p><font color="white" >One program scheduled to
record.</font></p>'
-------------------------------------------------------
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/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog