diff --git a/CONTROL/control b/CONTROL/control index 86c370b..f136fa5 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 0.9.1-2 +Version: 0.9.1-3 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: mongoose(>=3.0-7),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73),jim-cgi(>=0.5),service-control,busybox(>=1.19.3-1),lsof,epg(>=1.0.8),hmt(>=1.1.4),ssmtp,anacron,trm,openssl-command,nicesplice,id3v2 diff --git a/var/mongoose/cgi-bin/browse/chunk/chunk.js b/var/mongoose/cgi-bin/browse/chunk/chunk.js index 8249dca..9d52ca4 100644 --- a/var/mongoose/cgi-bin/browse/chunk/chunk.js +++ b/var/mongoose/cgi-bin/browse/chunk/chunk.js @@ -1,5 +1,6 @@ var handle; var currentpart = 0; +var stime = 0; function xprogress() { @@ -25,18 +26,18 @@ function xpart(part) if (part++ < parts) { - if (window.console) - console.log('Extracting part: ' + part); currentpart = part; $('#progressstat' + part) .text('extracting...') .addClass('blood'); + stime = new Date().getTime(); $.get('extract.jim?parts=' + parts + '&part=' + part + '&file=' + file, function(data) { + var taken = (new Date().getTime() - stime) / 1000; $('#progressstat' + part) - .text('done...') + .text('done... (' + taken + ' seconds)') .removeClass('blood'); currentpart = 0; $('#progresspart' + part) diff --git a/var/mongoose/cgi-bin/epg_dump.jim b/var/mongoose/cgi-bin/epg/dump.jim similarity index 100% rename from var/mongoose/cgi-bin/epg_dump.jim rename to var/mongoose/cgi-bin/epg/dump.jim diff --git a/var/mongoose/cgi-bin/epg_info.jim b/var/mongoose/cgi-bin/epg/info.jim similarity index 91% rename from var/mongoose/cgi-bin/epg_info.jim rename to var/mongoose/cgi-bin/epg/info.jim index b7bbe3d..dc7f710 100755 --- a/var/mongoose/cgi-bin/epg_info.jim +++ b/var/mongoose/cgi-bin/epg/info.jim @@ -79,7 +79,7 @@ if {[$record get event_crid] != ""} { puts " CRID - + [$record get channel_crid][$record get event_crid] @@ -93,7 +93,7 @@ if {[$record get series_crid] != ""} { puts " Series CRID - + [$record get channel_crid][$record get series_crid] @@ -107,7 +107,7 @@ if {[$record get rec_crid] != ""} { set rec [$record recommended] if {$rec != ""} { puts "Recommends - + [$rec get name] @@ -126,7 +126,7 @@ puts " - + Show raw EPG info diff --git a/var/mongoose/cgi-bin/epg_schedule.jim b/var/mongoose/cgi-bin/epg/schedule.jim similarity index 100% rename from var/mongoose/cgi-bin/epg_schedule.jim rename to var/mongoose/cgi-bin/epg/schedule.jim diff --git a/var/mongoose/cgi-bin/epg_search.jim b/var/mongoose/cgi-bin/epg/search.jim similarity index 97% rename from var/mongoose/cgi-bin/epg_search.jim rename to var/mongoose/cgi-bin/epg/search.jim index 1d743ec..7de484a 100755 --- a/var/mongoose/cgi-bin/epg_search.jim +++ b/var/mongoose/cgi-bin/epg/search.jim @@ -108,7 +108,7 @@ foreach record [lsort -command rsort $records] { puts "[$record get channel_num]" puts "[$record channel_icon 50]" puts " - + [$record get channel_name] " puts [$record cell] diff --git a/var/mongoose/cgi-bin/epg_service.jim b/var/mongoose/cgi-bin/epg/service.jim similarity index 100% rename from var/mongoose/cgi-bin/epg_service.jim rename to var/mongoose/cgi-bin/epg/service.jim diff --git a/var/mongoose/cgi-bin/sched_info.jim b/var/mongoose/cgi-bin/sched_info.jim index 8b7eba7..a9910d8 100755 --- a/var/mongoose/cgi-bin/sched_info.jim +++ b/var/mongoose/cgi-bin/sched_info.jim @@ -101,7 +101,7 @@ if {$crid != ""} { puts "" if $series { puts "Series" } else { puts "Event" } puts " CRID" - puts -nonewline " " } incr flag set crid [join [lrange [split $ev /] 1 end]] - puts -nonewline " diff --git a/var/mongoose/cgi-bin/xepg.jim b/var/mongoose/cgi-bin/xepg.jim index b4b5f23..76fbe51 100755 --- a/var/mongoose/cgi-bin/xepg.jim +++ b/var/mongoose/cgi-bin/xepg.jim @@ -98,7 +98,7 @@ foreach e $records { puts "[$e channel_icon 30] " puts "$chnum - [$e get channel_name] " diff --git a/var/mongoose/html/css/style.css b/var/mongoose/html/css/style.css index 07df80d..ae88916 100644 --- a/var/mongoose/html/css/style.css +++ b/var/mongoose/html/css/style.css @@ -127,7 +127,7 @@ table.keyval td color: black; } -pre, .pre +pre, .pre, .prelike { font-family: Consolas, 'Courier New', Courier, monospace; color: black; @@ -145,7 +145,10 @@ pre, .pre -webkit-border-top-right-radius: 4px; -moz-border-radius-topright: 4px; -khtml-border-top-right-radius: 4px; +} +pre, .pre +{ white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; diff --git a/var/mongoose/html/diag.shtml b/var/mongoose/html/diag.shtml index b40f90f..5838894 100644 --- a/var/mongoose/html/diag.shtml +++ b/var/mongoose/html/diag.shtml @@ -15,7 +15,7 @@ Diagnostic: + id=results> diff --git a/var/mongoose/include/epg.jim b/var/mongoose/include/epg.jim index c95b119..d4fd2fb 100755 --- a/var/mongoose/include/epg.jim +++ b/var/mongoose/include/epg.jim @@ -55,7 +55,7 @@ foreach record $records { puts "$chnum" puts "[$record channel_icon 50] - + [$record get channel_name] " set lcn $chnum diff --git a/var/mongoose/include/restart.jim b/var/mongoose/include/restart.jim index b7d47f7..e20d4ad 100755 --- a/var/mongoose/include/restart.jim +++ b/var/mongoose/include/restart.jim @@ -25,7 +25,7 @@ if {[system busy]} { } puts { - +
+
EPG Search @@ -31,7 +31,7 @@ puts "> " proc cts {type img text} { - puts " + puts "  $text"; } @@ -96,7 +96,7 @@ if {[llength $res] > 0} { set kw [string range [lindex $keyword 1] 1 end] # Clean the keyword string. regexp -nocase {^(\w+)} $kw kw - puts "$kw + puts "$kw " } puts "