Why is the minidlna database not being refreshed?

前端 未结 6 1535
执笔经年
执笔经年 2021-01-31 14:08

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 acros

6条回答
  •  逝去的感伤
    2021-01-31 14:49

    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.

    The notify_interval (notice the lack of a leading 'i'), as far as I can tell, is only used if you have inotify disabled. To use the notify_interval (ie. get the server to 'poll' the file system for changes instead of automatically being notified of them), you have to disable the inotify functionality.

    This is how it looks in my /etc/minidlna.conf:

    # set this to no to disable inotify monitoring to automatically discover new files
    # note: the default is yes
    inotify=yes
    

    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.

提交回复
热议问题