diff --git a/CONTROL/control b/CONTROL/control index cfd91f1..e4c39e7 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 0.7.6 +Version: 0.7.6-1 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: mongoose(>=3.0-2),jim(>=0.71-1),jim-sqlite3(>=0.71-1),jim-cgi(>=0.4),jim-oo,jim-pack,service-control,busybox(>=1.18.3-1),lsof,epg(>=1.0.5),hmt(>=1.0.6),ssmtp diff --git a/var/mongoose/lib/epg.class b/var/mongoose/lib/epg.class index d03f893..3de6612 100644 --- a/var/mongoose/lib/epg.class +++ b/var/mongoose/lib/epg.class @@ -257,6 +257,17 @@ epg method next {} { } } +epg method previous {} { + set tm $($start - 60) + set prevlist [epg fetch dump -service $service_id -time $tm] + + if {[llength prevlist] > 0} { + return [lindex $prevlist 0] + } else { + return "" + } +} + epg method recommended {} { set rec "" if {$rec_crid ne ""} {