#!/mod/bin/jimsh package require cgi puts "Content-Type: text/html" puts "" cgi_input #cgi_dump #set _cgi(tsfile) "/media/My Video/Have I Got News for You_20110606_2247.ts" if {[dict exists $_cgi tsfile]} { source /mod/var/mongoose/lib/epg.class set file [dict get $_cgi tsfile] set a [split [exec /mod/bin/hmt -p $file] "\t"] # Need to fix 64-bit.. set size "??" catch { file stat $file st set size [expr $st(size) / 1048576] } puts "
Title | [lindex $a 0] |
---|---|
Synopsis | [lindex $a 1] |
Definition | [lindex $a 2] |
Channel | [epg channelicon [lindex $a 4] 50 "vertical-align: middle"] [lindex $a 3] - [lindex $a 4] |
Start Time | " puts [clock format [lindex $a 5] -format "%c %Z"] puts " |
End Time | " puts [clock format [lindex $a 6] -format "%c %Z"] puts " |
Duration | [expr [expr [lindex $a 6] - [lindex $a 5]] / 60] minute(s). |
Size | $size MiB |
Flags | [lindex $a 7] |