try to fix again transcripts

This commit is contained in:
2024-12-10 17:08:10 -06:00
parent 1994953de8
commit 328970f3d8

View File

@@ -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('></podcast:transcript>',' />')
}
}