summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-10-26 15:36:09 +0100
committerJo-Philipp Wich <jow@openwrt.org>2014-10-26 15:36:09 +0100
commit0f87ddaec1dc373c7339e30bc86cf0649da0fc15 (patch)
tree770cf6a78c168eabaff7cb62cf3a4c08c5e09dab
parentecb0c2f11b861e5035b0397d2396ee4b5e9b3c3e (diff)
luci-minidlna: fix status display
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
-rw-r--r--applications/luci-minidlna/luasrc/controller/minidlna.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-minidlna/luasrc/controller/minidlna.lua b/applications/luci-minidlna/luasrc/controller/minidlna.lua
index 500c90aaa..606cf6d7b 100644
--- a/applications/luci-minidlna/luasrc/controller/minidlna.lua
+++ b/applications/luci-minidlna/luasrc/controller/minidlna.lua
@@ -44,9 +44,9 @@ function minidlna_status()
if fd then
local html = fd:read("*a")
if html then
- status.audio = (tonumber(html:match("Audio files: (%d+)")) or 0)
- status.video = (tonumber(html:match("Video files: (%d+)")) or 0)
- status.image = (tonumber(html:match("Image files: (%d+)")) or 0)
+ status.audio = (tonumber(html:match("Audio files</td><td>(%d+)")) or 0)
+ status.video = (tonumber(html:match("Video files</td><td>(%d+)")) or 0)
+ status.image = (tonumber(html:match("Image files</td><td>(%d+)")) or 0)
end
fd:close()
end