View previous topic :: View next topic |
Author |
Message |
rahulthewall Veteran
Joined: 01 Nov 2007 Posts: 1264 Location: Zürich
|
Posted: Thu Oct 23, 2008 11:54 pm Post subject: mpc weird errors (need correct syntax) [solved] |
|
|
I can use qmpdclient so the mpd configuration is correct. However, somehow mpc does not work for me, and I would like to be able to use that as well.
Code: |
rahul@wall ~ $ mpc ls /media/WALL/Music/ | mpc add
error: ACK [50@0] {lsinfo} directory not found
|
Code: |
rahul@wall ~ $ mpc ls /media/WALL/Music/ | mpc add
error: ACK [50@0] {lsinfo} directory not found
|
But I do mpc clear, then my qmpdclient is emptied as well. So obviously IMO I am not using the correct syntax for mpc. Would be cool if someone can point out the mistake that I am making. _________________ Who shall guard the guards?
Last edited by rahulthewall on Fri Oct 24, 2008 10:58 am; edited 3 times in total |
|
Back to top |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Fri Oct 24, 2008 12:29 am Post subject: |
|
|
You are trying to use an absolute path relative to the filesystem root, you need to use a path relative to the root of the mpd music_directory.
For example (in english ), if in your case you have 'music_directory "/media/WALL"' in /etc/mpd.conf, you'd probably use the following;
Code: | mpc ls Music/ | mpc add |
_________________ "You have to invite me in" |
|
Back to top |
|
|
rahulthewall Veteran
Joined: 01 Nov 2007 Posts: 1264 Location: Zürich
|
Posted: Fri Oct 24, 2008 9:09 am Post subject: |
|
|
Thanks. _________________ Who shall guard the guards? |
|
Back to top |
|
|
rahulthewall Veteran
Joined: 01 Nov 2007 Posts: 1264 Location: Zürich
|
Posted: Fri Oct 24, 2008 9:39 am Post subject: |
|
|
Just some further questions about this.
Code: |
rahul@wall ~ $ ls /var/lib/mpd/music/
Music local
|
Music -> points to my external
local -> points to my local hard drive
Now how do I go about adding only the local collection to a playlist?
EDIT: It seems that the local folder is not there in the database.
Code: |
rahul@wall ~ $ mpc ls
Music
|
_________________ Who shall guard the guards? |
|
Back to top |
|
|
rahulthewall Veteran
Joined: 01 Nov 2007 Posts: 1264 Location: Zürich
|
Posted: Fri Oct 24, 2008 10:57 am Post subject: |
|
|
Removed the old database, and rebuilt the index, everything works as it should now. _________________ Who shall guard the guards? |
|
Back to top |
|
|
|