diff --git a/var/mongoose/cgi-bin/browse/decrypt/execute.jim b/var/mongoose/cgi-bin/browse/decrypt/execute.jim index a458f5bf..1d33d865 100755 --- a/var/mongoose/cgi-bin/browse/decrypt/execute.jim +++ b/var/mongoose/cgi-bin/browse/decrypt/execute.jim @@ -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" diff --git a/var/mongoose/cgi-bin/restart.jim b/var/mongoose/cgi-bin/restart.jim index eabda674..355ba4ec 100755 --- a/var/mongoose/cgi-bin/restart.jim +++ b/var/mongoose/cgi-bin/restart.jim @@ -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'); }); diff --git a/var/mongoose/html/diag/diag.jim b/var/mongoose/html/diag/diag.jim index 269ee941..31c0b831 100755 --- a/var/mongoose/html/diag/diag.jim +++ b/var/mongoose/html/diag/diag.jim @@ -41,6 +41,12 @@ puts { + + + + + +