<p>
Bashpodder is a great Bash script for downloading the latest episodes of podcasts and other media from their feeds.
</p>
<p>
There are a few feeds that are not handled properly by Bashpodder, namely, the TED Talks podcast feed and the NPR digest show called the TED Radio Hour.
</p>
<p>
The URLs for the audio files have a number of additional fields at the end of the string after the media file name, and Bashpodder picks up the last field as if it were the media file name for the show. So every TED Radio Hour episode is called "510298". If you download more than one episode at a time, only the last episode to be saved will survive. Each new file clobbers the last one, because they all get the same filename.
</p>
<p>
Charles in NJ made a simple fix to Bashpodder.shell to correct this problem, and he shares it in this episode.
</p>

<h3>Links:</h3>

<ul>
<li>Bashpodder: <a href="https://lincgeek.org/bashpodder">https://lincgeek.org/bashpodder</a>
</li>
<li>TED Talks: <a href="https://blog.ted.com/audio_podcasts/">https://blog.ted.com/audio_podcasts/</a>
</li>
<li>TED Radio Hour:  <a href="https://www.npr.org/podcasts/510298/ted-radio-hour">https://www.npr.org/podcasts/510298/ted-radio-hour</a>
</li>
</ul>

<h3>Additional Resources:</h3>

<ol>
<li><a href="https://hackerpublicradio.org/eps/hpr1935/hpr1935/hpr1935-bashpodder_original.shell">Original version of Bashpodder.shell</a>
</li>
<li><a href="https://hackerpublicradio.org/eps/hpr1935/hpr1935/hpr1935-bashpodder.shell">Revised version with fixes to pick up TED-related podcast files</a>
</li>
<li><a href="https://hackerpublicradio.org/eps/hpr1935/hpr1935/hpr1935-bp.conf">Abbreviated example of bp.conf configuration file that tells Bashpodder what resources to fetch</a>
</li>
<li><a href="https://hackerpublicradio.org/eps/hpr1935/hpr1935/hpr1935-podcast.log">Abbreviated example of podcast.log that shows how Bashpodder stores its history, including some sample TED links.</a>
</li>
</ol>

<p>
Happy New Year from Charles in NJ. 
</p>
