try to fix again transcripts
This commit is contained in:
@@ -63,10 +63,10 @@ class PodcastFeed {
|
|||||||
// itunesDuration: duration,
|
// itunesDuration: duration,
|
||||||
}
|
}
|
||||||
if (episode.data.podcast.transcriptUrl) {
|
if (episode.data.podcast.transcriptUrl) {
|
||||||
item.customElements.push({ 'podcast:transcript': [{_attr:{
|
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()
|
console.log()
|
||||||
}
|
}
|
||||||
@@ -77,7 +77,7 @@ class PodcastFeed {
|
|||||||
|
|
||||||
// cache the xml to send to clients
|
// cache the xml to send to clients
|
||||||
const xml = feed.buildXml();
|
const xml = feed.buildXml();
|
||||||
return xml
|
return xml.replace('></podcast:transcript>',' />')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user