I am developing a MiniDLNA server to stream media over WiFi. Existing files are shown properly. However, when I add new files to media folders the changes are not updated across MiniDLNA clients. I have also tried to restart the server but it does not reflect the changes.
I changed inotify_interval = 60 but it's still not updating files.db which is the MiniDLNA media list database. If I delete this database and restart the server it shows the changes.
Does anyone know what the problem might be?
MiniDLNA uses
inotify, which is a functionality within the Linux kernel, used to discover changes in specific files and directories on the file system. To get it to work, you need inotify support enabled in your kernel.Thenotify_interval(notice the lack of a leading 'i'), as far as I can tell, is only used if you have inotify disabled. To use thenotify_interval(ie. get the server to 'poll' the file system for changes instead of automatically being notified of them), you have to disable theinotifyfunctionality.This is how it looks in my
/etc/minidlna.conf:Make sure that inotify is enabled in your kernel.
If it's not enabled, and you don't want to enable it, a forced rescan is the way to force MiniDLNA to re-scan the drive.