mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-19 00:18:56 +01:00
Update feed episode description to use CDATA
This commit is contained in:
parent
54a4b09592
commit
a8b92819d1
@ -308,7 +308,6 @@ class FeedEpisode extends Model {
|
|||||||
const customElements = [
|
const customElements = [
|
||||||
{ 'itunes:author': this.author || null },
|
{ 'itunes:author': this.author || null },
|
||||||
{ 'itunes:duration': Math.round(Number(this.duration)) },
|
{ 'itunes:duration': Math.round(Number(this.duration)) },
|
||||||
{ 'itunes:summary': this.description || null },
|
|
||||||
{
|
{
|
||||||
'itunes:explicit': !!this.explicit
|
'itunes:explicit': !!this.explicit
|
||||||
},
|
},
|
||||||
@ -319,6 +318,9 @@ class FeedEpisode extends Model {
|
|||||||
// Remove empty custom elements
|
// Remove empty custom elements
|
||||||
return Object.values(element)[0] !== null
|
return Object.values(element)[0] !== null
|
||||||
})
|
})
|
||||||
|
if (this.description) {
|
||||||
|
customElements.push({ 'itunes:summary': { _cdata: this.description } })
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title: this.title,
|
title: this.title,
|
||||||
|
Loading…
Reference in New Issue
Block a user