From 7a66306f7877f531a2ed72d614abab599772c642 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Tue, 7 Feb 2012 00:40:31 +0000 Subject: [PATCH] label segments with sequence number git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@726 2a923420-c742-0410-a762-8d5b09965624 --- var/mongoose/cgi-bin/browse/chunk/chunk.js | 4 +++- var/mongoose/cgi-bin/browse/chunk/extract.jim | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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]" +