Add support to podcast type

This commit is contained in:
mfcar 2023-02-22 18:22:52 +00:00
parent 8c84640484
commit b1ee54522a
No known key found for this signature in database
16 changed files with 77 additions and 22 deletions

View file

@ -7,6 +7,7 @@ class FeedMeta {
this.feedUrl = null
this.link = null
this.explicit = null
this.type = null
if (meta) {
this.construct(meta)
@ -21,6 +22,7 @@ class FeedMeta {
this.feedUrl = meta.feedUrl
this.link = meta.link
this.explicit = meta.explicit
this.type = meta.type
}
toJSON() {
@ -31,7 +33,8 @@ class FeedMeta {
imageUrl: this.imageUrl,
feedUrl: this.feedUrl,
link: this.link,
explicit: this.explicit
explicit: this.explicit,
type: this.type
}
}
@ -53,6 +56,7 @@ class FeedMeta {
{ 'author': this.author || 'advplyr' },
{ 'itunes:author': this.author || 'advplyr' },
{ 'itunes:summary': this.description || '' },
{ 'itunes:type': this.type },
{
'itunes:image': {
_attr: {
@ -73,4 +77,4 @@ class FeedMeta {
}
}
}
module.exports = FeedMeta
module.exports = FeedMeta