Thank you for your donation!


Collection monitoring
#1
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
Reply
#2
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...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/protoco...c-database

-Tim
Reply
#3
(12-19-2018, 03:41 PM)Tim Curtis Wrote: Mr. Curtis,

Thank you for Moode! I have several Pis around the house running Moode and they are the best sounding digital sources I've ever owned. 

I was searching for info on this issue of auto-updating the library and I came upon this 2018 thread. I did try to modify that auto_update line to yes but it didn't seem to achieve anything. Adding new music files to my server's watched folder doesn't update the library as seen in Moode -- I still have to manually update the MPD library every time I add new music to the server. Am I doing something wrong, or is there a new way to get Moode's library to auto-update? 

Thank you!

Best regards,
Corey

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...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/protoco...c-database

-Tim
Reply


Forum Jump: