Change scedule list to use svc.class instead of get_channel_attr_byhsvc

This commit is contained in:
Bob Buxton 2020-05-11 16:26:20 +01:00 committed by HummyPkg
parent a3cb0a6693
commit 8586483474
1 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,7 @@
package require cgi
source /mod/webif/lib/setup
require altrow rsv.class progressbar epg.class system.class
require altrow rsv.class progressbar epg.class system.class svc.class
noheader
set renderstart [clock milliseconds]
@ -256,9 +256,8 @@ proc eventrow {event {table TBL_RESERVATION}} {
[clock format $start \
-format {%a %d %b %Y %H:%M}]</a>"
if {$service_id != [$event get hsvc]} {
set ch [system strip [\
get_channel_attr_byhsvc \
$service_id szSvcName]]
set svc [svc load hsvc $service_id]
set ch [$svc get szSvcName]
puts "<img width=15 src=\"[\
epg channeliconpath $ch]\""
puts "title=\"$ch\" alt=\"$ch\">"