# Playing podcasts with a button push

**URL:** <https://discourse.mopidy.com/t/playing-podcasts-with-a-button-push/3229>\
**Category:** Pi MusicBox (archive)\
**Created:** [April 13, 2019, 2:56pm UTC](https://discourse.mopidy.com/t/playing-podcasts-with-a-button-push/3229 "2019-04-13T14:56:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_D](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/tim_d/32/1134_2.png) [@Tim\_D](https://discourse.mopidy.com/u/Tim_D)\
**Post date:** [April 13, 2019, 2:56pm UTC](https://discourse.mopidy.com/t/playing-podcasts-with-a-button-push/3229/1 "2019-04-13T14:56:37Z")

</div>

Hello all, I am able to use gpio pins to play the [Radio Streams] playlist. A button push runs a script which loads the play list. and would like to do the same for a podcast.  
Is it possible to run the podcasts using mpc commands or is it a bit more involved. If it is please may I have an example of a command line.

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [April 13, 2019, 4:45pm UTC](https://discourse.mopidy.com/t/playing-podcasts-with-a-button-push/3229/2 "2019-04-13T16:45:33Z")

</div>

```auto
mpc add <podcast uri>
mpc play

```

There is an extensive manual for mpc if you look.

You can get the uri by playing the podcast normally through the web interface then clicking the button on the Streams page to get now playing.

---

<div class="post-metadata">

**Author:** ![Tim\_D](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/tim_d/32/1134_2.png) [@Tim\_D](https://discourse.mopidy.com/u/Tim_D)\
**Post date:** [April 13, 2019, 5:22pm UTC](https://discourse.mopidy.com/t/playing-podcasts-with-a-button-push/3229/3 "2019-04-13T17:22:52Z")

</div>

I use this ‘[https://linux.die.net/man/1/mpc](https://linux.die.net/man/1/mpc)’

What you suggest will play a podcast but only the specific cast that the URI refers to, the button push will only ever play one episode and when a new episode is available it will be bypassed as it has a different URI, at least that is the case for BBC ones I’m trying to play. If I run ‘mpc ls’ I see one of the folders in mps’s music directory is Podcasts. I wanted to know how to navigate to it, or is it more complicated?

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [April 13, 2019, 5:49pm UTC](https://discourse.mopidy.com/t/playing-podcasts-with-a-button-push/3229/4 "2019-04-13T17:49:48Z")

</div>

Ahh. Yes that is going to be more complicated. So you want either a static uri that points to the latest podcast (I don’t know if the Mopidy-podcast extension provides anything like this) e.g. podcast:bbc:some-how:latest. Or, more likely, to navigate the directory structure. You should be able to `mpc ls podcasts/some-folder/bbc/some-show/ | mpc add`. But that depends on how they are ordered. I think the order might be dependent on the individual podcast. Can you give a specific example we could look at? I don’t ever listen to podcasts myself.

---

<div class="post-metadata">

**Author:** ![Tim\_D](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/tim_d/32/1134_2.png) [@Tim\_D](https://discourse.mopidy.com/u/Tim_D)\
**Post date:** [May 7, 2019, 9:39pm UTC](https://discourse.mopidy.com/t/playing-podcasts-with-a-button-push/3229/5 "2019-05-07T21:39:50Z")

</div>

Partial success with navigating to the podcast folder. Plays random episodes also has unstable results, sometimes times out.

---

<div class="post-metadata">

**Author:** ![shell3000](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@shell3000](https://discourse.mopidy.com/u/shell3000)\
**Post date:** [April 3, 2021, 12:54pm UTC](https://discourse.mopidy.com/t/playing-podcasts-with-a-button-push/3229/6 "2021-04-03T12:54:39Z")

</div>

This works for me to play the latest episode:

mpc clear  
mpc add ‘podcast+https://www.ivoox.com/cafe-con-nata\_fg\_f1130285\_filtro\_1.xml’  
mpc play $(mpc playlist | wc -l) # count all entries and play the result

[http://rootfriend.com/mopidy-podcasts](http://rootfriend.com/mopidy-podcasts)

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [February 19, 2026, 11:46am UTC](https://discourse.mopidy.com/t/playing-podcasts-with-a-button-push/3229/7 "2026-02-19T11:46:51Z")

</div>


