#!/mod/bin/jimsh package require sqlite3 package require cgi source /mod/webif/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 } if {![system is_listening 9000]} { puts "The Humax media server is not running, cannot decrypt." puts "Have you enabled Content Sharing in the Humax menus?" puts "It can sometimes turn itself off so it's worth double checking." puts "If it is on then try turning sharing off and on again." exit } puts "
"