Hey thanks for making this. It really makes it easier to generate a podcast RSS feed.
One thing that I notice when I use the W3C feed validator (https://validator.w3.org/feed/) on the built XML is that the validator doesn't like true or false for the itunes:explicit tag. It would be nice if instead of a boolean, we could pass 'yes' | 'no' | 'clean', as suggested by the feed validator. Alternatively, the bool could be turned into 'yes' or 'no'.
For now, I'm using the following work around to get my feed validated.
const podcast = new Podcast(feedOptions)
// ...add items for episodes...
const rssXml = podcast
.buildXml()
.replace(/<itunes:explicit>false<\/itunes:explicit>/g, '<itunes:explicit>no</itunes:explicit>')
.replace(/<itunes:explicit>true<\/itunes:explicit>/g, '<itunes:explicit>yes</itunes:explicit>')
Hey thanks for making this. It really makes it easier to generate a podcast RSS feed.
One thing that I notice when I use the W3C feed validator (https://validator.w3.org/feed/) on the built XML is that the validator doesn't like
true
orfalse
for theitunes:explicit
tag. It would be nice if instead of a boolean, we could pass'yes' | 'no' | 'clean'
, as suggested by the feed validator. Alternatively, the bool could be turned into 'yes' or 'no'.For now, I'm using the following work around to get my feed validated.