#!/mod/bin/jimsh package require cgi source /mod/webif/lib/setup require ts.class pretty_size header set rfile [cgi_get file] set ts [ts fetch $rfile] set dir [file dirname $rfile] set len [$ts duration 1] lassign [$ts bookmarks] book if {$book eq ""} { set book 0 } set pos [cgi_get pos $book] set pos $($pos + 0) if {$pos < 0} { set pos 0 } puts "
Replace Thumbnail
File: $rfile
Length:[clock format $len -format %T]
Size:[pretty_size [$ts size]] ([$ts get definition])
Bookmarks:[$ts get bookmarks] ($book second(s))
Thumbnail:
" if {[$ts get definition] eq "HD"} { set start $($pos - 0.5) set incr 1.0 } else { set start $($pos - 1) set incr 2.0 } if {$start < 0} { set start 0 } set limit $($start + $incr) puts "


Thumbnails from around second(s) into recording.
" for {set i [expr $start + 0.0]} {$i <= $limit} {set i [expr $i + 0.5]} { lappend times $i puts "" } puts "" foreach i $times { puts "" } puts "" foreach i $times { puts "" } puts "" puts "
@ $is
"