From 1994953de8e8d3b473b5c18501fc13a727d212cc Mon Sep 17 00:00:00 2001 From: Anthony Correa Date: Tue, 10 Dec 2024 16:29:20 -0600 Subject: [PATCH] actually fix transcripts --- layouts/podcast.11ty.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/layouts/podcast.11ty.js b/layouts/podcast.11ty.js index 53d532d..9813362 100644 --- a/layouts/podcast.11ty.js +++ b/layouts/podcast.11ty.js @@ -25,6 +25,7 @@ class PodcastFeed { const feed = new Podcast({ title: data.title, description: data.description, + customNamespaces: {podcast:"https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md"}, feedUrl: `${data.site.url}${data.page.filePathStem}.xml`, siteUrl: data.site.url, imageUrl: data.site.imageUrl || `${data.site.url}${data.page.filePathStem}.jpg`, @@ -62,11 +63,13 @@ class PodcastFeed { // itunesDuration: duration, } if (episode.data.podcast.transcriptUrl) { - item.customElements.push({ 'podcast:transcript': { - url:episode.data.podcast.transcriptUrl, + item.customElements.push({ 'podcast:transcript': [{_attr:{ + url:`${episode.data.podcast.transcriptUrl}`, type:"application/x-subrip" - } - })} + }}] + }) + console.log() + } item = feed.addItem(item); })