From 29eab3c131c18fc78fea425720a2d9e97913019d Mon Sep 17 00:00:00 2001 From: dibdot Date: Wed, 22 Oct 2014 21:34:30 +0200 Subject: [PATCH] Update minidlna.lua Fix minidlna v1.13 status messages --- applications/luci-minidlna/luasrc/controller/minidlna.lua | 6 +++--- 1 file 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(%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 -- 2.25.1