Skip to content

Podcast Update

This script can be used to download the latest episodes of a podcast from YouTube in MP3 format. Automate this by running it in a cronjob. This script requires yt-dlp to be installed first.

#!/bin/bash

# Podcast Update
cd /path/to/podcast/dir/;
rm playlist.m3u;
yt-dlp --no-check-certificate -x --audio-format mp3 -o "%(upload_date>%Y-%m-%d)s.%(title)s.%(ext)s" https://URL_TO_YOUTUBE_VIDEO_CHANNEL;
ls *.mp3 |sort > playlist.m3u

done