Hanging on bad radio stream URL

Have been having problems (also with raspyfi) where the device hangs if you try to play a bad radio stream URL. This can happen with the BBC streams when they change.

Restarting mpd or rebooting doesn’t help. A little exploration and I found this file: /var/lib/mpd/state

There’s a line as follows:

song_begin: bbcmedia.ic.llnwd.net/stream/bbc … a38a932a8d

(for example)

Deleting the section after the colon, saving then restarting mpd will fix the problem. I guess you need some code that detects this particular cause of hanging. You can still ssh into the system and edit the file with nano, then restart mpd with sudo /etc/init.d/mpd restart which will fix the problem. Otherwise you are stuck.

Thanks! Will correct this!

Do you know how I could fix it myself?

Yep, see here!

enjoying-volumio-and-here-s-a-tip-too-t69.html

There I find how to automate adding bbc stations.
I’d like to know how to fix hanging after clicking a bad radio station.
Sorry that I didn’t make myself clear.
I don’t need a complete guide how to fix that.
Just a pointer to get started since I don’t know the internals of volumio. :stuck_out_tongue:
For example, is it an mpd problem, a web interface problem?

My original post explains how, you’ll need to SSH into the pi though. Not sure if there’s an easier way to do it. I think it is an mpd problem.

Re-up this thread.
also for me, when i turn off volumio by cutting power (with a song in play state) mpd refuse to work correctly on reboot due to the /var/lib/mpd/state file.

i need to :

rm /var/lib/mpd/state service mpd restart

in order to bring back to life…

maybe is possible to introduce some kind of control on that file ?

thanks