diff --git a/CONTROL/conffiles b/CONTROL/conffiles
new file mode 100644
index 00000000..76177b5f
--- /dev/null
+++ b/CONTROL/conffiles
@@ -0,0 +1 @@
+var/mongoose/html/css/EXTRA.css
diff --git a/CONTROL/control b/CONTROL/control
index e27b0a5b..b0c2837f 100644
--- a/CONTROL/control
+++ b/CONTROL/control
@@ -1,7 +1,7 @@
Package: webif
Priority: optional
Section: web
-Version: 1.0.6-2
+Version: 1.0.6-3
Architecture: mipsel
Maintainer: af123@hummypkg.org.uk
Depends: webif-channelicons(>=1.1.4),mongoose(>=3.0-9),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73-1),jim-cgi(>=0.7),jim-binary,service-control(>=1.2),busybox(>=1.20.2-1),lsof,epg(>=1.0.13),hmt(>=1.1.14),ssmtp,anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2),stripts(>=1.2.3),smartmontools,tmenu(>=1.05),ffmpeg,id3v2,multienv(>=1.6)
diff --git a/CONTROL/postinst b/CONTROL/postinst
index 8c50f054..cda337b0 100755
--- a/CONTROL/postinst
+++ b/CONTROL/postinst
@@ -37,6 +37,7 @@ if [ ! -f /mod/webif/.strip-updated ]; then
fi
/mod/webif/lib/bin/diskattrs
+var/mongoose/lib/bin/resetnew
[ -f $tmpf ] && rm -f $tmpf
diff --git a/var/mongoose/cgi-bin/settings.jim b/var/mongoose/cgi-bin/settings.jim
index 71004340..2298c855 100755
--- a/var/mongoose/cgi-bin/settings.jim
+++ b/var/mongoose/cgi-bin/settings.jim
@@ -40,6 +40,7 @@ set pkgdev [$settings pkgdev]
set notoolbar [$settings notoolbar]
set nomobile [$settings nomobile]
set nohelplinks [$settings nohelplinks]
+set nounwatchedcount [$settings nounwatchedcount]
set xepghours [$settings xepghours]
if {$xepghours == 0} { set xepghours 4 }
set genrededup [$settings genrededup]
@@ -84,6 +85,7 @@ handle_int_update pkgdev $pkgdev "Development Package Display"
handle_int_update notoolbar $notoolbar "Disable toolbar"
handle_int_update nomobile $nomobile "Disable mobile link"
handle_int_update nohelplinks $nohelplinks "Disable help links"
+handle_int_update nounwatchedcount $nounwatchedcount "Disable unwatched count"
handle_int_update genrededup $genrededup "Genre search dedup"
handle_int_update autolog $autolog "Auto-processing log level"
@@ -171,6 +173,7 @@ setting_toggle "HTTPS web server?" "https" \
setting_toggle "Slide-down toolbar?" "notoolbar" $(!$notoolbar) 1
setting_toggle "Mobile link on main page?" "nomobile" $(!$nomobile) 1
setting_toggle "Help links on main page?" "nohelplinks" $(!$nohelplinks) 1
+setting_toggle "Unwatched count on folders?" "nounwatchedcount" $(!$nounwatchedcount) 1
puts -nonewline "
diff --git a/var/mongoose/cgi-bin/xepg.js b/var/mongoose/cgi-bin/xepg.js
index b26af2b5..531dfa02 100644
--- a/var/mongoose/cgi-bin/xepg.js
+++ b/var/mongoose/cgi-bin/xepg.js
@@ -9,15 +9,13 @@ $('button.nav').click(function() {
'&pos=' + $('#xegrid').scrollTop();
});
-var now = new Date().getTime();
-
$('#xepg_dp').datepicker({
buttonImage: '/img/cal.gif',
buttonImageOnly: true,
showOn: 'button',
dateFormat: '@',
- minDate: now,
- maxDate: now + 7 * 86400,
+ minDate: 0,
+ maxDate: 8,
onSelect: function(val, sel) {
var stt = $(this).attr('stt');
// Extract date part
diff --git a/var/mongoose/html/browse/index.jim b/var/mongoose/html/browse/index.jim
index c095c24f..3523a6d8 100755
--- a/var/mongoose/html/browse/index.jim
+++ b/var/mongoose/html/browse/index.jim
@@ -20,13 +20,17 @@ if {![dict exists $env REQUEST_URI]} {
if {![dict exists $env QUERY_STRING]} { set env(QUERY_STRING) "root" }
+set config [settings new]
+
set order [cgi_get order -]
if {$order eq "-"} {
- set order [[settings new] sortorder]
+ set order [$config sortorder]
} else {
- [settings new] sortorder $order
+ $config sortorder $order
}
+set nofcount [$config nounwatchedcount]
+
set model [system model]
set dustbin [system dustbin 1]
@@ -43,7 +47,7 @@ proc directory {file bfile tbfile} {
set img "/images/711_1_09_Media_Folder.png"
if {$bfile eq $::dustbin} { set img "/img/Dustbin_Folder.png" }
puts ""
- puts ""
+ if {!$::nofcount} { puts "" }
puts ""
puts "
- /mod/etc/anacrontab
- /mod/var/spool/cron/crontabs/root
+ - /mod/webif/html/css/EXTRA.css
}
proc quickedit {file} {
diff --git a/var/mongoose/html/lib/header.jim b/var/mongoose/html/lib/header.jim
index 9e3074c3..3800dff8 100755
--- a/var/mongoose/html/lib/header.jim
+++ b/var/mongoose/html/lib/header.jim
@@ -21,6 +21,7 @@ puts {
+
diff --git a/var/mongoose/lib/bin/resetnew b/var/mongoose/lib/bin/resetnew
new file mode 100755
index 00000000..651e5f0a
--- /dev/null
+++ b/var/mongoose/lib/bin/resetnew
@@ -0,0 +1,25 @@
+#!/mod/bin/jimsh
+
+source /mod/webif/lib/setup
+require system.class ts.class
+
+proc scan {dir} {
+ puts "Fixing $dir..."
+ file stat "$dir/" st
+ if {$st(dev) != $::rootdev} { return }
+
+ ts resetnew $dir
+
+ foreach entry [readdir -nocomplain $dir] {
+ if {[file isdirectory "$dir/$entry"]} {
+ scan "$dir/$entry"
+ }
+ }
+}
+
+set root [system mediaroot]
+file stat "$root/" rootstat
+set rootdev $rootstat(dev)
+
+scan $root
+
diff --git a/var/mongoose/lib/settings.class b/var/mongoose/lib/settings.class
index 08924ec6..95362374 100644
--- a/var/mongoose/lib/settings.class
+++ b/var/mongoose/lib/settings.class
@@ -25,6 +25,7 @@ class settings {
notoolbar 0
nomobile 0
nohelplinks 0
+ nounwatchedcount 0
xepghours 4
genrededup 0
autolog 0
@@ -165,6 +166,10 @@ settings method nohelplinks {{val -1}} {
return [$self _nval_setting nohelplinks $val]
}
+settings method nounwatchedcount {{val -1}} {
+ return [$self _nval_setting nounwatchedcount $val]
+}
+
settings method sortorder {{val -1}} {
return [$self _nval_setting sortorder $val]
}