From e3a0d1ec96a31155f8a4505fda92c0224dd438ec Mon Sep 17 00:00:00 2001 From: hummypkg Date: Mon, 4 Jan 2016 02:19:31 +0000 Subject: [PATCH] fix status when decrypting git-svn-id: file:///root/webif/svn/pkg/webif/trunk@2564 2a923420-c742-0410-a762-8d5b09965624 --- webif/cgi-bin/status.jim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webif/cgi-bin/status.jim b/webif/cgi-bin/status.jim index 48cae18..b65004b 100755 --- a/webif/cgi-bin/status.jim +++ b/webif/cgi-bin/status.jim @@ -30,7 +30,7 @@ if {[catch {set pid [exec pgrep -n humaxtv]}]} { exit } -set exts {.ts .mkv .avi .mpg .mpeg .wmv .mp3 .mp4 .mov} +set exts {.ts .avi .mpg .mpeg .wmv .mkv .mp3 .mp4 .mov .hmt .m4v .m4a} proc get_data {} { global pid exts opfile @@ -91,6 +91,9 @@ if {[file exists "/mod/tmp/webif_auto/.op"]} { set fp [open "/mod/tmp/webif_auto/.op"] lassign [split [string trim [$fp read]] ":"] op opfile $fp close + if {[system model] eq "HDR"} { + set opfile [string map {/media/ /mnt/hd2/} $opfile] + } debug "OP: $op - $opfile" }