#!/mod/bin/jimsh package require sqlite3 package require cgi source /mod/var/mongoose/lib/setup require ts.class puts "Content-Type: text/html\r\n\r\n" cgi_input #cgi_dump set rfile [cgi_get file] set ts [ts fetch $rfile] set dir [file dirname $rfile] set len [$ts duration 1] lassign [$ts dlnaloc] url header puts "
Decrypt in-place
File:$rfile
Length:[clock format $len -format "%T"]
DLNA URL$url
" if {$url eq ""} { puts "This file has not been indexed by the media server. Cannot decrypt." puts "Have you enabled Content Sharing in the Humax menus?" exit } puts "
"