2ce27624ce
git-svn-id: file:///root/webif/svn/pkg/webif/trunk@2413 2a923420-c742-0410-a762-8d5b09965624
22 lines
476 B
Plaintext
Executable File
22 lines
476 B
Plaintext
Executable File
#!/mod/bin/jimsh
|
|
|
|
if {[lindex $argv 0] ne "-stop"} exit
|
|
|
|
source /mod/webif/lib/setup
|
|
require ts.class system.class
|
|
|
|
set file [lindex $argv 1]
|
|
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]
|
|
|
|
system plog activity "Recorded: $dir/$title ($dur minutes - $ch)"
|
|
|