improvements
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@835 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
parent
d8914e2311
commit
df8d655cc8
@ -16,6 +16,12 @@ set dir [file dirname $rfile]
|
|||||||
set len [$ts duration 1]
|
set len [$ts duration 1]
|
||||||
lassign [$ts dlnaloc] url
|
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 xstart [clock milliseconds]
|
||||||
|
|
||||||
set base [file rootname $rfile]
|
set base [file rootname $rfile]
|
||||||
@ -25,6 +31,11 @@ if {![file exists $origdir]} { file mkdir $origdir }
|
|||||||
set shname [file tail $base]
|
set shname [file tail $base]
|
||||||
puts "Processing $shname"
|
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
|
exec wget -O "$rfile.decrypting" $url
|
||||||
|
|
||||||
puts "Moving recording to $origdir"
|
puts "Moving recording to $origdir"
|
||||||
|
@ -49,7 +49,7 @@ puts {
|
|||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#progressbar').reportprogress(0);
|
$('#progressbar').reportprogress(0);
|
||||||
handle = setInterval("update()", 300);
|
handle = setInterval("update()", 350);
|
||||||
$.get('/cgi-bin/restart.jim?now=yes');
|
$.get('/cgi-bin/restart.jim?now=yes');
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -41,6 +41,12 @@ puts {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td colspan=2>
|
||||||
|
<button id=reboot style="width: 100%">Reboot System</button>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan=2>
|
<td colspan=2>
|
||||||
<button id=runreset style="width: 100%"
|
<button id=runreset style="width: 100%"
|
||||||
|
@ -39,6 +39,16 @@ $('#runedit').click(function(e) {
|
|||||||
window.location = '/edit/edit.jim';
|
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) {
|
$('#runreset').click(function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (!confirm('Are you sure? This will completely remove all packages and settings.'))
|
if (!confirm('Are you sure? This will completely remove all packages and settings.'))
|
||||||
|
@ -7,6 +7,7 @@ puts {
|
|||||||
source /mod/var/mongoose/include/model.jim
|
source /mod/var/mongoose/include/model.jim
|
||||||
puts {
|
puts {
|
||||||
</title>
|
</title>
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
|
||||||
<link rel="shortcut icon" href=/img/favicon.ico />
|
<link rel="shortcut icon" href=/img/favicon.ico />
|
||||||
<link type="text/css" href="/css/jquery-ui.css" rel="Stylesheet" />
|
<link type="text/css" href="/css/jquery-ui.css" rel="Stylesheet" />
|
||||||
<link href=/css/style.css rel=stylesheet type=text/css />
|
<link href=/css/style.css rel=stylesheet type=text/css />
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title><!--#exec cmd="/mod/var/mongoose/include/model.jim" --></title>
|
<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="expires" value="Thu, 01 Jan 1970 00:00:00 GMT" />
|
||||||
<meta http-equiv="pragma" content="no-cache" />
|
<meta http-equiv="pragma" content="no-cache" />
|
||||||
<link rel="shortcut icon" href=/img/favicon.ico />
|
<link rel="shortcut icon" href=/img/favicon.ico />
|
||||||
|
@ -87,7 +87,7 @@ proc {pkg loadmeta} {} {
|
|||||||
|
|
||||||
proc {pkg fetchmeta} {} {
|
proc {pkg fetchmeta} {} {
|
||||||
set f [socket stream hummypkg.org.uk:80]
|
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 "Host: hummypkg.org.uk\r\n"
|
||||||
$f puts -nonewline "\r\n"
|
$f puts -nonewline "\r\n"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user