You are not logged in.

#1 2006-12-25 18:43:03

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Auto-updating MPD [Work in progress..]

For all you MPD lovers, this is awesome big_smile Anytime you add or delete a file inside your MPD music_directory, for example, your MPD library will automatically update.

First, install incron from AUR.

Next, run "incrontab -e" and put something like this:

/home/stonecrest/music IN_MODIFY,IN_ATTRIB,IN_CREATE,IN_DELETE mpc update

Obviously change for your music_directory.

Finally, run the daemon "/etc/rc.d/incron start" and you're done. Be sure to add the daemon to rc.conf if you like it.

I'm going to add this to the wiki too.


I am a gated community.

Offline

#2 2006-12-25 18:52:40

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: Auto-updating MPD [Work in progress..]

Okay, well, it seems like it doesn't work for subdirectories (unless you put all your subdirectories into the inctrontab). Hmm....

Bug report: http://bts.aiken.cz/view.php?id=111


I am a gated community.

Offline

#3 2007-05-17 16:17:30

ABCC
Member
From: Netherlands
Registered: 2007-01-05
Posts: 2

Re: Auto-updating MPD [Work in progress..]

Your first post got my hopes up!
The second smashed them to pieces sad

incron looks cool nonetheless though, I'm sure I can find a use for it one of these days.

Offline

Board footer

Powered by FluxBB