label segments with sequence number

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@726 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2012-02-07 00:40:31 +00:00
parent a014fec23d
commit 7a66306f78
2 changed files with 7 additions and 1 deletions

View File

@ -31,7 +31,9 @@ function xpart(part)
$('#progressstat' + part) $('#progressstat' + part)
.text('extracting...') .text('extracting...')
.addClass('blood'); .addClass('blood');
$.get('extract.jim?part=' + part + '&file=' + file, $.get('extract.jim?parts=' + parts +
'&part=' + part +
'&file=' + file,
function(data) { function(data) {
$('#progressstat' + part) $('#progressstat' + part)
.text('done...') .text('done...')

View File

@ -11,6 +11,7 @@ cgi_input
set rfile [cgi_get file] set rfile [cgi_get file]
set part [cgi_get part -] set part [cgi_get part -]
set parts [cgi_get parts "?"]
if {$part eq "-"} exit if {$part eq "-"} exit
@ -32,3 +33,6 @@ puts "CMD: ($cmd)"
puts [exec {*}$cmd] puts [exec {*}$cmd]
set ts [ts fetch "$base.part$part.ts"]
$ts settitle "$part/$parts. [string range [ts get $title] 0 40]"