new strip version

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1052 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2012-06-11 18:49:56 +00:00
parent 7356e6e220
commit f0d22b3b01
4 changed files with 34 additions and 3 deletions

View File

@ -1,9 +1,9 @@
Package: webif
Priority: optional
Section: web
Version: 0.9.11
Version: 0.9.11-1
Architecture: mipsel
Maintainer: af123@hummypkg.org.uk
Depends: webif-channelicons(>=1.0.1),mongoose(>=3.0-7),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73),jim-cgi(>=0.5),service-control(>=1.2),busybox(>=1.19.3-1),lsof,epg(>=1.0.9),hmt(>=1.1.6),ssmtp,anacron,trm,openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2),stripts
Depends: webif-channelicons(>=1.0.1),mongoose(>=3.0-7),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73),jim-cgi(>=0.5),service-control(>=1.2),busybox(>=1.19.3-1),lsof,epg(>=1.0.9),hmt(>=1.1.6),ssmtp,anacron,trm,openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2),stripts(>=1.0.1)
Suggests: ffmpeg,webif-iphone
Description: An evolving web interface for the Humax.

View File

@ -0,0 +1,16 @@
#!/mod/bin/jimsh
package require cgi
source /mod/webif/lib/setup
require ts.class pretty_size
puts "Content-Type: text/html\r\n\r\n"
cgi_input
#cgi_dump
set rfile [cgi_get file]
set base [file rootname $rfile]
puts [exec /mod/bin/stripts -aq $base]

View File

@ -39,6 +39,10 @@ Your original recording files will be retained in a folder called _original.
<tr><th>Size:</th><td>[pretty_size [$ts size]] ([$ts get definition])</td></tr>
<tr><th>Time:</th>
<td>Stripping will take around [clock format $esttime -format "%T"]</td></tr>
<tr><th>Estimated Saving:</th>
<td class=va><span id=analysis class=va>
<img class=va src=/img/loading.gif> Analysing file, please wait...
</span></td></tr>
</table>
<span class=hidden id=params
@ -46,7 +50,7 @@ Your original recording files will be retained in a folder called _original.
dir=\"[cgi_quote_url $dir]\"
></span>
<div id=stripdiv style=\"padding: 1em\">
<div id=stripdiv class=hidden style=\"padding: 1em\">
<button id=stripit>Perform strip operation</button>
</div>

View File

@ -13,6 +13,17 @@ function update()
$(document).ready(function() {
$('#analysis').load('analyse.jim?file=' + $('#params').attr('file'),
function(t) {
if ($.trim(t) == '0%')
{
$('#output').text('Recording is already stripped.');
$('#back').slideDown();
}
else
$('#stripdiv').slideDown();
});
$('#progressbar').reportprogress(0);
$('#back').button().click(function() {