improvements

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@835 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2012-03-11 00:26:14 +00:00
parent d8914e2311
commit df8d655cc8
7 changed files with 31 additions and 2 deletions

View File

@ -16,6 +16,12 @@ set dir [file dirname $rfile]
set len [$ts duration 1]
lassign [$ts dlnaloc] url
if {$url eq ""} {
puts "This file has not been indexed by the media server.
Cannot decrypt."
exit
}
set xstart [clock milliseconds]
set base [file rootname $rfile]
@ -25,6 +31,11 @@ if {![file exists $origdir]} { file mkdir $origdir }
set shname [file tail $base]
puts "Processing $shname"
if {[file exists "$origdir/$shname.ts"]} {
puts "The file already exists in _original, cannot decrypt."
exit
}
exec wget -O "$rfile.decrypting" $url
puts "Moving recording to $origdir"

View File

@ -49,7 +49,7 @@ puts {
$(document).ready(function() {
$('#progressbar').reportprogress(0);
handle = setInterval("update()", 300);
handle = setInterval("update()", 350);
$.get('/cgi-bin/restart.jim?now=yes');
});
</script>

View File

@ -41,6 +41,12 @@ puts {
</td>
</tr>
<tr>
<td colspan=2>
<button id=reboot style="width: 100%">Reboot System</button>
</td>
</tr>
<tr>
<td colspan=2>
<button id=runreset style="width: 100%"

View File

@ -39,6 +39,16 @@ $('#runedit').click(function(e) {
window.location = '/edit/edit.jim';
});
$('#reboot').click(function(e) {
e.preventDefault();
if (confirm('Are you sure you wish to perform a reboot now?'))
if (confirm('Really sure?\n\nThere is a small chance the ' +
' Humax may not restart\n' +
'without physical intervention.\n\n' +
'i.e. pressing the standby button or using the remote control'))
window.location = '/cgi-bin/restart.jim';
});
$('#runreset').click(function(e) {
e.preventDefault();
if (!confirm('Are you sure? This will completely remove all packages and settings.'))

View File

@ -7,6 +7,7 @@ puts {
source /mod/var/mongoose/include/model.jim
puts {
</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<link rel="shortcut icon" href=/img/favicon.ico />
<link type="text/css" href="/css/jquery-ui.css" rel="Stylesheet" />
<link href=/css/style.css rel=stylesheet type=text/css />

View File

@ -2,6 +2,7 @@
<html>
<head>
<title><!--#exec cmd="/mod/var/mongoose/include/model.jim" --></title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<meta http-equiv="expires" value="Thu, 01 Jan 1970 00:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<link rel="shortcut icon" href=/img/favicon.ico />

View File

@ -87,7 +87,7 @@ proc {pkg loadmeta} {} {
proc {pkg fetchmeta} {} {
set f [socket stream hummypkg.org.uk:80]
$f puts -nonewline "GET /pkg.meta HTTP/1.1\r\n"
$f puts -nonewline "GET /hdrfoxt2/pkg.meta HTTP/1.1\r\n"
$f puts -nonewline "Host: hummypkg.org.uk\r\n"
$f puts -nonewline "\r\n"