#!/mod/bin/jimsh package require cgi source /mod/webif/lib/setup require epg.class system.class settings.class set irinst [system pkginst ir] httpheader set service [cgi_get service 0] set event [cgi_get event 0] if {![cgi_exists bare]} header else noheader set record [lindex [epg fetch dump -service $service -event $event] 0] $record get_channel_info set others [$record othertimes] if {[[settings] chanchangenc]} { puts { } } else { jqplugin confirmAction puts { } } puts " " if {[$record get warning] != ""} { puts " " } if {[$record get event_crid] != ""} { puts " " } if {[$record get series_crid] != ""} { puts " " } if {[$record get rec_crid] != ""} { set rec [$record recommended] if {$rec != ""} { puts "" } } puts "
Programme [$record get name]
Synopsis [$record get text]
Start [clock format [$record get start] -format {%c %Z}] " foreach o $others { if {[$o ended]} { continue } $o get_channel_info $o process_sched if {[$o get series_crid] eq ""} { set ro 1 } else { set ro 2 } puts -nonewline "
    " puts -nonewline "Also: " puts -nonewline "" puts -nonewline "[clock format [$o get start] -format {%c %Z}]" puts -nonewline " on " puts -nonewline [$o channel_icon 16] puts -nonewline "[$o get channel_name] " puts "" puts "" } puts "
Duration [clock format [$record get duration] -format %T] " if {[$record showing]} { puts [progressbar [$record percent]] } puts "
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])
" if {$irinst} { puts "" } puts [$record channel_icon 70] if {$irinst} { puts "" } puts " [join [$record icon_set] " "]
Show raw EPG info " puts "
" epg cleanup if {![cgi_exists bare]} footer