alip / mpdcron

A ‘cron’ like program for mpd. It can execute scripts based on mpd’s idle events.
http://mpd.wikia.com/wiki/Client:MPDCRON
GNU General Public License v2.0
33 stars 8 forks source link

Error while using 'stats' module #20

Closed rafi closed 11 years ago

rafi commented 11 years ago

$ mpdcron -n When a song starts:

Sending status & currentsong commands to Mpd server
[stats] New song detected (Kings of Convenience - The Build Up), id: 207, pos: 11
Setting environment variable MC_CALLS_PLAYER=1
Running hook: hooks/player home directory: /home/rafi/.mpdcron
Failed to execute hook player: Failed to execute child process "hooks/player" (No such file or directory)
Sending idle command with mask 0x18

This is my mpdcron configuration file:

[main]
modules = stats
pidfile = /home/rafi/.mpdcron/mpdcron.pid
killwait = 3
loglevel = 2
[mpd]
events = player;mixer
reconnect = 5
timeout = 0

[stats]
dbpath = /home/rafi/.mpdcron/stats.db
bind_to_addresses = localhost
port = 6601
default_permissions = select;update
passwords = needvodka@update;needbeer@select

Is the modules = variable supposed to be under [main] or [player] ?

rafi commented 11 years ago

Silly me, it's trying to run a hook script...