Not saving playlist.

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
Post Reply
User avatar
Silent-Hunter
Posts: 16
Joined: Fri Feb 26, 2010 10:11 pm

Not saving playlist.

Post by Silent-Hunter »

When I "mpc add" something, it gets erased when I turn the router off. How can I fix this?
User avatar
Silent-Hunter
Posts: 16
Joined: Fri Feb 26, 2010 10:11 pm

Re: Not saving playlist.

Post by Silent-Hunter »

Can no one help me?
ilinux
Posts: 55
Joined: Mon Jul 06, 2009 2:36 am

Re: Not saving playlist.

Post by ilinux »

For save and reload you have to do this

mpc add all stations
*Before save you have to delete pls or m3u file called webradio*
mpc save webradio

Now remove all mpd add to startup script and add mpc load webradio
User avatar
Silent-Hunter
Posts: 16
Joined: Fri Feb 26, 2010 10:11 pm

Re: Not saving playlist.

Post by Silent-Hunter »

I don't want the webradio to start on boot quite yet. I just want the router to keep the stations I enter into it.
User avatar
Silent-Hunter
Posts: 16
Joined: Fri Feb 26, 2010 10:11 pm

Re: Not saving playlist.

Post by Silent-Hunter »

Also, how come when I use MPC and MPC on my laptop it saves the stations when I turn it off, but not on the router?
ilinux
Posts: 55
Joined: Mon Jul 06, 2009 2:36 am

Re: Not saving playlist.

Post by ilinux »

The commands above save and load from a file into router flash and not start at boot.

After mpc load webradio (or some other filename) you have to exec mpc play
User avatar
mightyohm
Site Admin
Posts: 1063
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Not saving playlist.

Post by mightyohm »

You need to edit /etc/mpd.conf and enable the state file support. I don't have the file handy, but the state file setting is towards the top. If you can't find it, post your mpd.conf here and I'll point it out.
Post Reply