luci-minidlna: fix status display
[project/luci.git] / applications / luci-minidlna / luasrc / controller / minidlna.lua
index 1bd5617..606cf6d 100644 (file)
@@ -22,7 +22,6 @@ function index()
        local page
 
        page = entry({"admin", "services", "minidlna"}, cbi("minidlna"), _("miniDLNA"))
-       page.i18n = "minidlna"
        page.dependent = true
 
        entry({"admin", "services", "minidlna_status"}, call("minidlna_status"))
@@ -45,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