From: Jo-Philipp Wich Date: Sun, 26 Oct 2014 14:36:09 +0000 (+0100) Subject: luci-minidlna: fix status display X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0f87ddaec1dc373c7339e30bc86cf0649da0fc15;p=oweals%2Fluci.git luci-minidlna: fix status display Signed-off-by: Jo-Philipp Wich --- 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(%d+)")) or 0) + status.video = (tonumber(html:match("Video files(%d+)")) or 0) + status.image = (tonumber(html:match("Image files(%d+)")) or 0) end fd:close() end