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 {
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 "