actually fix transcripts
This commit is contained in:
@@ -25,6 +25,7 @@ class PodcastFeed {
|
|||||||
const feed = new Podcast({
|
const feed = new Podcast({
|
||||||
title: data.title,
|
title: data.title,
|
||||||
description: data.description,
|
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`,
|
feedUrl: `${data.site.url}${data.page.filePathStem}.xml`,
|
||||||
siteUrl: data.site.url,
|
siteUrl: data.site.url,
|
||||||
imageUrl: data.site.imageUrl || `${data.site.url}${data.page.filePathStem}.jpg`,
|
imageUrl: data.site.imageUrl || `${data.site.url}${data.page.filePathStem}.jpg`,
|
||||||
@@ -62,11 +63,13 @@ class PodcastFeed {
|
|||||||
// itunesDuration: duration,
|
// itunesDuration: duration,
|
||||||
}
|
}
|
||||||
if (episode.data.podcast.transcriptUrl) {
|
if (episode.data.podcast.transcriptUrl) {
|
||||||
item.customElements.push({ 'podcast:transcript': {
|
item.customElements.push({ 'podcast:transcript': [{_attr:{
|
||||||
url:episode.data.podcast.transcriptUrl,
|
url:`${episode.data.podcast.transcriptUrl}`,
|
||||||
type:"application/x-subrip"
|
type:"application/x-subrip"
|
||||||
|
}}]
|
||||||
|
})
|
||||||
|
console.log()
|
||||||
}
|
}
|
||||||
})}
|
|
||||||
item = feed.addItem(item);
|
item = feed.addItem(item);
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user