diff --git a/CONTROL/control b/CONTROL/control index c304d93..2f9ad73 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 1.2.3 +Version: 1.2.3-1 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: webif-channelicons(>=1.1.18),lighttpd(>=1.4.35-2),jim(>=0.76),jim-oo,jim-sqlite3(>=0.76),jim-cgi(>=0.7),jim-binary(>=0.76),service-control(>=2.1),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.0),hmt(>=2.0.3),ssmtp,anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2-1),stripts(>=1.2.5-3),smartmontools,tmenu(>=1.08),ffmpeg,id3v2,multienv(>=1.6),tcpping(>=1.1),e2fsprogs,wireless-tools(>=29-1),dbupdate,recmon(>2.0.3-3),auto-unprotect(>=2.0.0-1) diff --git a/webif/html/browse/assets.jim b/webif/html/browse/assets.jim index 69a4f65..10e2217 100755 --- a/webif/html/browse/assets.jim +++ b/webif/html/browse/assets.jim @@ -96,9 +96,6 @@ if {$model eq "HDR"} { } } -if {$flatten} { - puts {
  • No-Flatten
  • } -} puts {
  • Auto-Expire Options
  • diff --git a/webif/html/browse/index.jim b/webif/html/browse/index.jim index c10bb78..9678d8c 100755 --- a/webif/html/browse/index.jim +++ b/webif/html/browse/index.jim @@ -14,7 +14,6 @@ eval_plugins browse header set nicesplice [system pkginst nicesplice] -set flatten [system pkginst flatten] set ignore {.nts .thm .hmi} set include {.ts .avi .mpg .mpeg .wmv .mkv .mp3 .mp4 .mov .hmt .m4v} diff --git a/webif/html/browse/script.js b/webif/html/browse/script.js index 5a93a39..07169f2 100755 --- a/webif/html/browse/script.js +++ b/webif/html/browse/script.js @@ -389,15 +389,6 @@ function fixdmenu(el, menu, flag, tag, descr, recurse) function preparedmenu(el, menu) { - if (el.attr('noflat') != undefined) - { - if (el.attr('noflat') > 0) - $(menu).changeContextMenuItem('#flat', 'Allow Flatten'); - else - $(menu).changeContextMenuItem('#flat', - 'Prevent Flatten'); - } - fixdmenu(el, menu, 'autoshrink', '#shrink', 'Auto-shrink', 1); fixdmenu(el, menu, 'autodedup', '#dedup', 'Auto-dedup', 0); fixdmenu(el, menu, 'autodecrypt', '#decrypt', 'Auto-decrypt', 1); @@ -666,10 +657,6 @@ var dmenuclick = function(action, el, pos) $('#aexpiry').dialog('open'); break; - case 'flat': - flagdir(file, 'noflatten', iconset, results, el); - break; - case 'dedup': flagdir(file, 'autodedup', iconset, results, el); break; diff --git a/webif/html/img/flat-tyre.png b/webif/html/img/flat-tyre.png deleted file mode 100644 index 560fb48..0000000 Binary files a/webif/html/img/flat-tyre.png and /dev/null differ diff --git a/webif/html/sched/script.js b/webif/html/sched/script.js index 601d334..f5f1007 100755 --- a/webif/html/sched/script.js +++ b/webif/html/sched/script.js @@ -301,10 +301,16 @@ $('#manrsv').dialog({ if (s) data.push({ name: "start", value: s.getTime() / 1000}); - var s = $('#mretime').timepicker('getTime', + var e = $('#mretime').timepicker('getTime', $('#mredate').datepicker('getDate')); - if (s) - data.push({ name: "end", value: s.getTime() / 1000}); + if (e) + data.push({ name: "end", value: e.getTime() / 1000}); + + if (s.getTime() >= e.getTime()) + { + $('#mrerr').html('Invalid time range...'); + return; + } $('#mrerr') .html(' Creating event...'); diff --git a/webif/lib/bin/auto b/webif/lib/bin/auto index a4db844..b0e5728 100755 --- a/webif/lib/bin/auto +++ b/webif/lib/bin/auto @@ -10,6 +10,8 @@ set audiomp3 [$settings audiomp3] set modules {decrypt dedup shrink mpg mp3 expire} +set root [system mediaroot] + set logfile "/mod/tmp/auto.log" set logfd "unset" @@ -72,6 +74,13 @@ proc inuse {ts} { return [$ts inuse] } +proc specialdir {dir} { + if {[string match {\[*} [string trimleft [file tail $dir]]]} { + return 1 + } + return 0 +} + proc elapsed {start} { return $(([clock milliseconds] - $start) / 1000.0) } @@ -121,7 +130,7 @@ proc runplugin {name {ts 0}} { } } -eval_plugins auto +eval_plugins auto 1 set scanstart [clock milliseconds] log "-------------------------------------------------------" @@ -667,7 +676,7 @@ proc scan_run {dir flag callback} { if {$dir eq $dustbin} return - if {[string match {\[*} [file tail $dir]]} return + if {[specialdir $dir]} return if {[file exists "$dir/.$flag"]} { $callback $dir } @@ -691,7 +700,7 @@ proc xscan {dir attr {force 0} {recurse 1}} {{indent 0} {forceflag ""}} { return } - if {[string match {\[*} [file tail $dir]]} { + if {[specialdir $dir]} { # Special folder file stat "$dir/" st if {$st(dev) != $::rootdev} { @@ -737,7 +746,7 @@ proc scanup {dir flag} { set rl [string length $root] while {[string length $dir] >= $rl} { - if {[string match {\[*} [file tail $dir]]} { + if {[specialdir $dir]} { return -1 } if {[file exists "$dir/.auto${flag}r"]} { @@ -770,7 +779,6 @@ proc scansingle {dirs} { } } -set root [system mediaroot] file stat "$root/" rootstat set rootdev $rootstat(dev) log "Root device: $rootdev" 2 diff --git a/webif/lib/browse.class b/webif/lib/browse.class index 9c664d4..dea3e2e 100644 --- a/webif/lib/browse.class +++ b/webif/lib/browse.class @@ -4,8 +4,6 @@ require system.class plugin if {![exists -proc class]} { package require oo } class dir {} -set _flatten [system pkginst flatten] - proc _addicon {img {hover ""} {class va}} { set icon "