Fix merge conflicts and add language information on the feed rss

This commit is contained in:
mfcar 2023-02-23 00:33:04 +00:00
parent cc62a20a5d
commit ad0edc6329
No known key found for this signature in database
3 changed files with 12 additions and 9 deletions

View file

@ -8,6 +8,7 @@ class FeedMeta {
this.link = null
this.explicit = null
this.type = null
this.language = null
if (meta) {
this.construct(meta)
@ -23,6 +24,7 @@ class FeedMeta {
this.link = meta.link
this.explicit = meta.explicit
this.type = meta.type
this.language = meta.language
}
toJSON() {
@ -34,7 +36,8 @@ class FeedMeta {
feedUrl: this.feedUrl,
link: this.link,
explicit: this.explicit,
type: this.type
type: this.type,
language: this.language
}
}
@ -46,13 +49,13 @@ class FeedMeta {
feed_url: this.feedUrl,
site_url: this.link,
image_url: this.imageUrl,
language: 'en',
custom_namespaces: {
'itunes': 'http://www.itunes.com/dtds/podcast-1.0.dtd',
'psc': 'http://podlove.org/simple-chapters',
'podcast': 'https://podcastindex.org/namespace/1.0'
},
custom_elements: [
{ 'language': this.language || 'en' },
{ 'author': this.author || 'advplyr' },
{ 'itunes:author': this.author || 'advplyr' },
{ 'itunes:summary': this.description || '' },