#!/mod/bin/jimsh source /mod/var/mongoose/lib/epg.class source /mod/var/mongoose/lib/spinner.class source /mod/var/mongoose/lib/altrow source /mod/var/mongoose/lib/cat [spinner new { text "Loading EPG Data..." size "1.2em" style "margin: 1em;" }] start #cat /mod/var/mongoose/lib/epg_popup source /mod/var/mongoose/lib/epg_popup set start [clock milliseconds] set records [epg fetch dump -time [clock seconds]] set got [clock milliseconds] puts { } proc rsort {v1 v2} { set v1s [$v1 get channel_num] set v2s [$v2 get channel_num] if {$v1s == $v2s} { return 0 } if {$v1s > $v2s } { return 1 } return -1 } foreach record [lsort -command rsort $records] { altrow set num [$record get channel_num] puts "" puts "" puts [$record cell] puts [[$record next] cell] puts "" } puts "
Channel On Now On Next
$num[$record channel_icon 50] [$record get channel_name]
" set end [clock milliseconds] puts " Retrieved now in: [expr [expr $got - $start] / 1000.0] seconds.
All rendered in: [expr [expr $end - $start] / 1000.0] seconds.
" epg cleanup