From 39b3dee3e1da9019473b8d593b5b93d51b514285 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Sat, 21 Jul 2012 19:47:23 +0000 Subject: [PATCH] add get_channel_attr_byorglcn git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1097 2a923420-c742-0410-a762-8d5b09965624 --- CONTROL/control | 2 +- var/mongoose/lib/findhsvc | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CONTROL/control b/CONTROL/control index af91e95..8db34f2 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 0.9.12-6 +Version: 0.9.12-7 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: webif-channelicons(>=1.0.2),mongoose(>=3.0-7),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73),jim-cgi(>=0.5),service-control(>=1.2),busybox(>=1.19.3-1),lsof,epg(>=1.0.9),hmt(>=1.1.6),ssmtp,anacron,trm,openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2),stripts(>=1.1.2) diff --git a/var/mongoose/lib/findhsvc b/var/mongoose/lib/findhsvc index baa36f3..8231434 100755 --- a/var/mongoose/lib/findhsvc +++ b/var/mongoose/lib/findhsvc @@ -35,6 +35,23 @@ if {![exists -proc get_channel_attr]} { return 0 } + proc get_channel_attr_byorglcn {lcn {field hSvc}} { + global rsvdb + + set ff [$rsvdb query " + select $field + from channel.TBL_SVC + where usOrgLcn = $lcn + and usLcn < 800 + limit 1 + "] + + if {[llength $ff] == 1} { + return [lindex [lindex $ff 0] 1] + } + return 0 + } + proc get_channel_attr_byhsvc {hsvc {field usLcn}} { global rsvdb