From 328970f3d8dc388d1d99faff7dbe6a031ca92138 Mon Sep 17 00:00:00 2001 From: Anthony Correa Date: Tue, 10 Dec 2024 17:08:10 -0600 Subject: [PATCH] try to fix again transcripts --- layouts/podcast.11ty.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/podcast.11ty.js b/layouts/podcast.11ty.js index 9813362..bb5ecae 100644 --- a/layouts/podcast.11ty.js +++ b/layouts/podcast.11ty.js @@ -63,10 +63,10 @@ class PodcastFeed { // itunesDuration: duration, } if (episode.data.podcast.transcriptUrl) { - item.customElements.push({ 'podcast:transcript': [{_attr:{ + item.customElements.push({ 'podcast:transcript': {_attr:{ url:`${episode.data.podcast.transcriptUrl}`, type:"application/x-subrip" - }}] + }} }) console.log() } @@ -77,7 +77,7 @@ class PodcastFeed { // cache the xml to send to clients const xml = feed.buildXml(); - return xml + return xml.replace('>',' />') } }