diff --git a/CONTROL/control b/CONTROL/control index 58c41a2..ab0678a 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,10 +1,10 @@ Package: webif Priority: optional Section: web -Version: 1.2.0-5 +Version: 1.2.0-6 Architecture: mipsel Maintainer: af123@hummypkg.org.uk -Depends: webif-channelicons(>=1.1.14),lighttpd(>=1.4.35-2),jim(>=0.75-1),jim-oo,jim-sqlite3(>=0.75),jim-cgi(>=0.7),jim-binary(>=0.75),service-control(>=2.1),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.0),hmt(>=1.2.0),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,mongoose +Depends: webif-channelicons(>=1.1.14),lighttpd(>=1.4.35-2),jim(>=0.75-1),jim-oo,jim-sqlite3(>=0.75),jim-cgi(>=0.7),jim-binary(>=0.75),service-control(>=2.1),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.0),hmt(>=2.0.0),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,mongoose,recmon(>=2.0.2) Suggests: Description: An evolving web interface for the Humax. Tags: http://hummy.tv/forum/threads/5866/ diff --git a/etc/recmon.d/webiflog b/etc/recmon.d/webiflog new file mode 100755 index 0000000..a7e3b1c --- /dev/null +++ b/etc/recmon.d/webiflog @@ -0,0 +1,24 @@ +#!/mod/bin/jimsh + +source /mod/webif/lib/setup +require ts.class system.class + +set file [lindex $argv 0] +set ts [ts fetch "$file.ts"] +set root [system mediaroot] + +set dir [file dirname $file] +if {[string match "$root*" $dir]} { + set dir [string range $dir $([string length $root] + 1) end] +} +set ch [$ts get channel_name] +set dur [$ts duration] +set title [$ts get title] + +set msg "Recorded: $dir/$title ($dur minutes - $ch)" +set logfd [open "/mod/tmp/record.log" "a+"] +puts $logfd "[\ + clock format [clock seconds] -format "%d/%m/%Y %H:%M"\ + ] - $msg" +$logfd close + diff --git a/webif/html/browse/file.jim b/webif/html/browse/file.jim index 82c50e7..0fced0b 100755 --- a/webif/html/browse/file.jim +++ b/webif/html/browse/file.jim @@ -89,6 +89,9 @@ if {$type eq "ts"} {