From e197a1ada14129c7dbe23d3c12d6a4436f513adf Mon Sep 17 00:00:00 2001 From: Anthony Correa Date: Mon, 11 Nov 2024 13:12:15 -0600 Subject: [PATCH] update podcast cdn --- content/feeds/podcast.11ty.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/feeds/podcast.11ty.js b/content/feeds/podcast.11ty.js index 59583ea..90c2e90 100644 --- a/content/feeds/podcast.11ty.js +++ b/content/feeds/podcast.11ty.js @@ -2,6 +2,8 @@ const { Podcast } = require('podcast'); const music_metadata = require('music-metadata'); const fs = require('fs'); +const PODCAST_CDN_ROOT="https://podcast.rpg.cdn.ascorrea.com" + async function getMp3Duration(filePath) { try { const metadata = await music_metadata.parseFile(filePath); @@ -62,7 +64,7 @@ class PodcastFeed { author: data.site.author.name, date: episode_data.date, // any format that js Date can parse. // enclosure : {url:`${data.site.url}/episodes/s${zero_pad_season}/s${zero_pad_season}e${episode_data.episode}.mp3`}, // optional enclosure - enclosure : {url:`https://cdn.localhost/podcast/s${zero_pad_season}e${episode_data.episode}.mp3`}, // optional enclosure + enclosure : {url:`${PODCAST_CDN_ROOT}/s${zero_pad_season}e${episode_data.episode}.mp3`}, // optional enclosure itunesAuthor: data.site.author, itunesExplicit: episode_data.itunesExplicit, // itunesDuration: duration,