Update minidlna.lua 232/head
authordibdot <dibdot@gmail.com>
Wed, 22 Oct 2014 19:34:30 +0000 (21:34 +0200)
committerdibdot <dibdot@gmail.com>
Wed, 22 Oct 2014 19:34:30 +0000 (21:34 +0200)
Fix minidlna v1.13 status messages

applications/luci-minidlna/luasrc/controller/minidlna.lua

index 500c90a..606cf6d 100644 (file)
@@ -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