Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mpc weird errors (need correct syntax) [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Thu Oct 23, 2008 11:54 pm    Post subject: mpc weird errors (need correct syntax) [solved] Reply with quote

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
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Fri Oct 24, 2008 12:29 am    Post subject: Reply with quote

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
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Fri Oct 24, 2008 9:09 am    Post subject: Reply with quote

Thanks. :)
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Fri Oct 24, 2008 9:39 am    Post subject: Reply with quote

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
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Fri Oct 24, 2008 10:57 am    Post subject: Reply with quote

Removed the old database, and rebuilt the index, everything works as it should now.
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum