clangen / musikcube

a cross-platform, terminal-based music player, audio engine, metadata indexer, and server in c++
https://musikcube.com
BSD 3-Clause "New" or "Revised" License
4.1k stars 294 forks source link

Question regarding musikcubed #586

Open extrowerk opened 1 year ago

extrowerk commented 1 year ago

I am using musikcube/d on my NAS and connecting my clients (laptops/phones) via VPN. Now my question is: do musikcubed watching the media-directory for any changes and update its database / informs the clients, or if not, is there any way to trigger rescan from the connected clients, or is there any provisory plumbing for this kind of automatisation?

sorry if this is a silly question, but i assumed it watches the folders, but i feel like it doesnt happen, maybe my NAS/client OS or sw version combination doesnt supports this. I use FreeBSD based TrueNAS Core on the NAS, and use OpenBSD and Android clients.

Thanks for the clarification and keep up the good work.

lxjv commented 9 months ago

from my use using both local and remote libraries, MK seems to reload the library on restart only

tomasmez commented 6 months ago

if you check the source for musikcubed it is using the SIGUSR1 interrupt to reload the library:

std::signal(SIGUSR1, rescanHandler);

i suppose you could mix inotofywait and the kill command to make it update automatically.