#!/mod/bin/jimsh package require cgi source /mod/var/mongoose/lib/epg.class puts "Content-Type: text/html" puts "" cgi_input #cgi_dump set service 0 catch { set service [dict get $_cgi service] } set event 0 catch { set event [dict get $_cgi event] } if {! [dict exists $_cgi bare]} { source /mod/var/mongoose/html/lib/header.jim } #set service 8384 #set event 25293 set record [lindex [epg fetch dump -service $service -event $event] 0] puts "
Programme | [$record get name] |
---|---|
Synopsis | [$record get text] |
Start | [clock format [$record get start] -format {%c %Z}] |
Duration | [clock format [$record get duration] -format %T] |
Type | [$record get content_type] ([$record get content_code]) |
Warning | [$record get warning] |
CRID | [$record get channel_crid][$record get event_crid] |
Series CRID | [$record get channel_crid][$record get series_crid] |
Recommends | [$rec get name] ([$rec get channel_crid][$rec get event_crid]) |
[join [$record icon_set] " "] |