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:
parent
7356e6e220
commit
f0d22b3b01
@ -1,9 +1,9 @@
|
|||||||
Package: webif
|
Package: webif
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: web
|
Section: web
|
||||||
Version: 0.9.11
|
Version: 0.9.11-1
|
||||||
Architecture: mipsel
|
Architecture: mipsel
|
||||||
Maintainer: af123@hummypkg.org.uk
|
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
|
Suggests: ffmpeg,webif-iphone
|
||||||
Description: An evolving web interface for the Humax.
|
Description: An evolving web interface for the Humax.
|
||||||
|
16
var/mongoose/cgi-bin/browse/strip/analyse.jim
Executable file
16
var/mongoose/cgi-bin/browse/strip/analyse.jim
Executable 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]
|
||||||
|
|
@ -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>Size:</th><td>[pretty_size [$ts size]] ([$ts get definition])</td></tr>
|
||||||
<tr><th>Time:</th>
|
<tr><th>Time:</th>
|
||||||
<td>Stripping will take around [clock format $esttime -format "%T"]</td></tr>
|
<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>
|
</table>
|
||||||
|
|
||||||
<span class=hidden id=params
|
<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]\"
|
dir=\"[cgi_quote_url $dir]\"
|
||||||
></span>
|
></span>
|
||||||
|
|
||||||
<div id=stripdiv style=\"padding: 1em\">
|
<div id=stripdiv class=hidden style=\"padding: 1em\">
|
||||||
<button id=stripit>Perform strip operation</button>
|
<button id=stripit>Perform strip operation</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -13,6 +13,17 @@ function update()
|
|||||||
|
|
||||||
$(document).ready(function() {
|
$(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);
|
$('#progressbar').reportprogress(0);
|
||||||
|
|
||||||
$('#back').button().click(function() {
|
$('#back').button().click(function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user