diff --git a/var/mongoose/cgi-bin/browse/chunk/chunk.js b/var/mongoose/cgi-bin/browse/chunk/chunk.js index cee41033..8249dca1 100644 --- a/var/mongoose/cgi-bin/browse/chunk/chunk.js +++ b/var/mongoose/cgi-bin/browse/chunk/chunk.js @@ -31,7 +31,9 @@ function xpart(part) $('#progressstat' + part) .text('extracting...') .addClass('blood'); - $.get('extract.jim?part=' + part + '&file=' + file, + $.get('extract.jim?parts=' + parts + + '&part=' + part + + '&file=' + file, function(data) { $('#progressstat' + part) .text('done...') diff --git a/var/mongoose/cgi-bin/browse/chunk/extract.jim b/var/mongoose/cgi-bin/browse/chunk/extract.jim index 7e469539..3916f159 100755 --- a/var/mongoose/cgi-bin/browse/chunk/extract.jim +++ b/var/mongoose/cgi-bin/browse/chunk/extract.jim @@ -11,6 +11,7 @@ cgi_input set rfile [cgi_get file] set part [cgi_get part -] +set parts [cgi_get parts "?"] if {$part eq "-"} exit @@ -32,3 +33,6 @@ puts "CMD: ($cmd)" puts [exec {*}$cmd] +set ts [ts fetch "$base.part$part.ts"] +$ts settitle "$part/$parts. [string range [ts get $title] 0 40]" +