Moode Forum
Collection monitoring - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Feature requests (https://moodeaudio.org/forum/forumdisplay.php?fid=8)
+--- Thread: Collection monitoring (/showthread.php?tid=803)



Collection monitoring - Listener - 12-19-2018

It would be nice if mo0de would monitor collections so that changes to collections would be evident in real time without having to trigger an mpd database update.

What is the practical difference between an "update" and a "re-gen" and when should one be used instead of the other?

Best,

     John


RE: Collection monitoring - Tim Curtis - 12-19-2018

Hi John,

There actually are MPD settings that control whether to automatically update the database when files are changed. Refer to this link https://github.com/MusicPlayerDaemon/MPD/blob/master/doc/mpd.conf.5 for information. The settings go in the file /etc/mpd.conf. I left them out of moOde because of old reports that the mechanism used to detect file changes can bog down a system. Maybe its time to revisit them :-)

auto_update <yes or no>
This specifies the whether to support automatic update of music database when
files are changed in music_directory. The default is to disable autoupdate
of database.

auto_update_depth <N>
Limit the depth of the directories being watched, 0 means only watch
the music directory itself.  There is no limit by default.

The difference between update and re-gen (rescan) are described in this link
https://www.musicpd.org/doc/html/protocol.html#the-music-database

-Tim