How to start a podcast by command line - or how to add latest podcast of a xml RSS feed to playlist?


first, thanks for Pi Musicbox. This is amazing! Thank you for this awesome work, we (my whole family) is enjoying it very much!

Starting a web-radio stream on boot works quite fine.
Is there a possibility to add the most actual element of a podcast RSS xml feed to the playlist? My idea was that the Pi Musicbox starts up with the most actual podcast and then after the first element of the podcast automatically switches to a webradio.

Edit: A different approach would be to write a script that starts the podcast and after the first “song” it stops and starts a playlist.
What is the mpd command for a podcast?
I couldn’t unearth something about it.

Thanks you very much in advance!

If you have the mopidy-podcast extension installed, you can load all episodes of a podcast using mpc simply by prefixing the podcast URL with “podcast+”, for example:

mpc add “podcast+

Thanks a lot tkem! That is actually what I searched for

Writing a small bash script

sleep 60 &&
mpc add "podcast+[podcast url]"
mpc play &&
mpc crop && # to leave just the most actual podcast in the playlist
mpc load "Discover Weekly by spotifydiscover" && # just an example

and adding it to /etc/rc.local did the trick!

Is there a command to wait for mopidy and mpc running after booting?
Then I could exchange it with the “sleep” command and musicbox would probably start faster.

You could probably loop in your script until mpd status returns without error; maybe will give some inspiration…

The autoplay feature does this. Take a look at the code at the bottom of /opt/musicbox/ and adapt it to what you want.

what is the best GUI for PI music box using raspberry pi?

@Salve_Lolo Please refrain from stealing existing unrelated topics for your questions. I made a new topic for your question over at What is the best GUI for PI music box using raspberry pi?