Author: dmeyer
Date: Fri Apr 21 11:53:49 2006
New Revision: 8153
Modified:
trunk/tvserver/src/epg.py
Log:
do not add old stuff
Modified: trunk/tvserver/src/epg.py
==============================================================================
--- trunk/tvserver/src/epg.py (original)
+++ trunk/tvserver/src/epg.py Fri Apr 21 11:53:49 2006
@@ -184,10 +184,13 @@
else:
listing = kaa.epg.search(title=kaa.epg.QExpr('like', fav.name))
+ now = time.time()
for p in listing:
if not fav.match(p.title, p.channel.name, p.start):
continue
-
+ if p.stop < now:
+ # do not add old stuff
+ continue
rec = Recording(p.title, p.channel.id, fav.priority,
p.start, p.stop,
info={ "episode":p.episode,
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog