PowerShell script to download podcast episodes

It’s late at night.

I should go to sleep.

But I love this podcast called Empire and feel this itch to download its episodes and store locally for re-listening to later. In the past I’ve used castget to download podcasts, but it’s not very flexible – it cannot name the files the way I want. All it can do is pick up the title, and podcasts like Empire don’t have a season or episode number in the title so all the files are in a alphabetical order rather the the correct order.

I poke around the RSS feed of the podcast and realize that it has all this info.

So it’s presumeably just a case of me parsing the feed and downloading the episodes. Surely this can be done easily via PowerShell.

Sure enough, it can be. And happy with the progress I made here I set about downloading episodes of a few other podcasts too I had my eyes on. The result is a bunch of scripts in this repo.

Here’s the one for the Empire podcast. It may change a bit from what’s in the repo as it’s unlikely I will keep updating it here.

 

Podcast Recommendation

I do highly recommend the Empire podcast, though, if you love a bit of history. It’s such a money pit though as they keep interviewing writers and recommending books in each episode, such that I end up buying a ton of books. 😄 Not that I have time to read these, so currently I have a huge pile of unread books and a massive guit-trip about spending money and not having space to store these! I should be spending time reading them instead of creating scripts like these… 🙃

Book Recommendation

Speaking of which, I am currently reading Peter Frankopan’s excellent “The First Crusade“. I came across it in the first episode of Season 2 and so far I am enjoying it. Only wish I had more time to read it properly. I finally switched to its audiobook version today (am about half-way through the book and progress has been slow, so time for new measures). I love the narrator so I am glad with the switch. This is a book best read though, atleast for a major part, as there’s so many names and places and it’s difficult to keep track of these when listening. I constantly rewind as I have missed something. With a physical book it’s way easier to keep going back a few pages or checking out the index.

I had no idea who Alexios Komnenos was until I read this book. Now I do. ☺️