add epg previous method

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@455 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2011-10-13 23:32:46 +00:00
parent 02f7c5aad9
commit 218ff8edfb
2 changed files with 12 additions and 1 deletions

View File

@ -1,7 +1,7 @@
Package: webif Package: webif
Priority: optional Priority: optional
Section: web Section: web
Version: 0.7.6 Version: 0.7.6-1
Architecture: mipsel Architecture: mipsel
Maintainer: af123@hummypkg.org.uk 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 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

View File

@ -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 {} { epg method recommended {} {
set rec "" set rec ""
if {$rec_crid ne ""} { if {$rec_crid ne ""} {