Add feed stylesheet

This commit is contained in:
Dennis Reimann
2025-03-03 12:48:24 +01:00
parent ece9a49c82
commit fbddbaa0a7
2 changed files with 210 additions and 1 deletions

View File

@@ -102,7 +102,13 @@ const parseEpisode = e => {
const _noParticipants = [], _noNode = []
// remove invalid tag
delete feed.rss.channel.author
const rss = feed.rss
delete rss.channel.author
// reference xslsheet
delete feed.rss
feed['?xml-stylesheet'] = { __attr: { type: 'text/xsl', href: '/xslsheet.xml' } }
feed.rss = rss
// podcast
feed.rss.channel['podcast:value'] = {