{"action":"created","issue":{"url":"https://api.github.com/repos/openwrt/luci/issues/1","labels_url":"https://api.github.com/repos/openwrt/luci/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/openwrt/luci/issues/1/comments","events_url":"https://api.github.com/repos/openwrt/luci/issues/1/events","html_url":"https://github.com/openwrt/luci/issues/1","id":45426523,"number":1,"title":"luci-minidlna: wrong file count in status message","user":{"login":"joaochainho","id":8501364,"avatar_url":"https://avatars.githubusercontent.com/u/8501364?v=3","gravatar_id":"","url":"https://api.github.com/users/joaochainho","html_url":"https://github.com/joaochainho","followers_url":"https://api.github.com/users/joaochainho/followers","following_url":"https://api.github.com/users/joaochainho/following{/other_user}","gists_url":"https://api.github.com/users/joaochainho/gists{/gist_id}","starred_url":"https://api.github.com/users/joaochainho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaochainho/subscriptions","organizations_url":"https://api.github.com/users/joaochainho/orgs","repos_url":"https://api.github.com/users/joaochainho/repos","events_url":"https://api.github.com/users/joaochainho/events{/privacy}","received_events_url":"https://api.github.com/users/joaochainho/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-10-09T22:39:02Z","updated_at":"2015-08-29T18:15:26Z","closed_at":"2015-08-29T18:15:26Z","body":"Hi,\r\nI noticed that the minidlna status message is showing wrong file count. All counters show zero files.\r\nI went digging and realised that since minidlna 1.1.x, the daemon's builtin status page has changed.\r\nSo I would like to suggest the following patch. Probably it's not 100% correct but it solved the problem. Hope  it's useful. \r\n\r\n```diff\r\ndiff --git a/applications/luci-minidlna/luasrc/controller/minidlna.lua b/applications/luci-minidlna/luasrc/controller/minidlna.lua\r\nindex 500c90a..486cd9e 100644\r\n--- a/applications/luci-minidlna/luasrc/controller/minidlna.lua\r\n+++ b/applications/luci-minidlna/luasrc/controller/minidlna.lua\r\n@@ -44,9 +44,9 @@ function minidlna_status()\r\n                if fd then\r\n                        local html = fd:read(\"*a\")\r\n                        if html then\r\n-                               status.audio = (tonumber(html:match(\"Audio files: (%d+)\")) or 0)\r\n-                               status.video = (tonumber(html:match(\"Video files: (%d+)\")) or 0)\r\n-                               status.image = (tonumber(html:match(\"Image files: (%d+)\")) or 0)\r\n+                               status.audio = (tonumber(html:match(\"<td>Audio files</td><td>(%d+)</td>\")) or 0)\r\n+                               status.video = (tonumber(html:match(\"<td>Video files</td><td>(%d+)</td>\")) or 0)\r\n+                               status.image = (tonumber(html:match(\"<td>Image files</td><td>(%d+)</td>\")) or 0)\r\n                        end\r\n                        fd:close()\r\n                end\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/openwrt/luci/issues/comments/136021348","html_url":"https://github.com/openwrt/luci/issues/1#issuecomment-136021348","issue_url":"https://api.github.com/repos/openwrt/luci/issues/1","id":136021348,"user":{"login":"hnyman","id":7926856,"avatar_url":"https://avatars.githubusercontent.com/u/7926856?v=3","gravatar_id":"","url":"https://api.github.com/users/hnyman","html_url":"https://github.com/hnyman","followers_url":"https://api.github.com/users/hnyman/followers","following_url":"https://api.github.com/users/hnyman/following{/other_user}","gists_url":"https://api.github.com/users/hnyman/gists{/gist_id}","starred_url":"https://api.github.com/users/hnyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hnyman/subscriptions","organizations_url":"https://api.github.com/users/hnyman/orgs","repos_url":"https://api.github.com/users/hnyman/repos","events_url":"https://api.github.com/users/hnyman/events{/privacy}","received_events_url":"https://api.github.com/users/hnyman/received_events","type":"User","site_admin":false},"created_at":"2015-08-29T18:15:26Z","updated_at":"2015-08-29T18:15:26Z","body":"This has been fixed in trunk and for-15.05 branches by: https://github.com/openwrt/luci/commit/0f87ddaec1dc373c7339e30bc86cf0649da0fc15 in Oct 2014.\r\n(Luci for AA12.09 and BB14.07 remains unfixed.)\r\n"}}