mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-29 12:10:31 +02:00
Add support to podcast type
This commit is contained in:
parent
8c84640484
commit
b1ee54522a
16 changed files with 77 additions and 22 deletions
|
@ -14,6 +14,9 @@ class FeedEpisode {
|
|||
this.author = null
|
||||
this.explicit = null
|
||||
this.duration = null
|
||||
this.season = null
|
||||
this.episode = null
|
||||
this.episodeType = null
|
||||
|
||||
this.libraryItemId = null
|
||||
this.episodeId = null
|
||||
|
@ -35,6 +38,9 @@ class FeedEpisode {
|
|||
this.author = episode.author
|
||||
this.explicit = episode.explicit
|
||||
this.duration = episode.duration
|
||||
this.season = episode.season
|
||||
this.episode = episode.episode
|
||||
this.episodeType = episode.episodeType
|
||||
this.libraryItemId = episode.libraryItemId
|
||||
this.episodeId = episode.episodeId || null
|
||||
this.trackIndex = episode.trackIndex || 0
|
||||
|
@ -52,6 +58,9 @@ class FeedEpisode {
|
|||
author: this.author,
|
||||
explicit: this.explicit,
|
||||
duration: this.duration,
|
||||
season: this.season,
|
||||
episode: this.episode,
|
||||
episodeType: this.episodeType,
|
||||
libraryItemId: this.libraryItemId,
|
||||
episodeId: this.episodeId,
|
||||
trackIndex: this.trackIndex,
|
||||
|
@ -77,6 +86,9 @@ class FeedEpisode {
|
|||
this.author = meta.author
|
||||
this.explicit = mediaMetadata.explicit
|
||||
this.duration = episode.duration
|
||||
this.season = episode.season
|
||||
this.episode = episode.episode
|
||||
this.episodeType = episode.episodeType
|
||||
this.libraryItemId = libraryItem.id
|
||||
this.episodeId = episode.id
|
||||
this.trackIndex = 0
|
||||
|
@ -144,9 +156,12 @@ class FeedEpisode {
|
|||
{ 'itunes:summary': this.description || '' },
|
||||
{
|
||||
"itunes:explicit": !!this.explicit
|
||||
}
|
||||
},
|
||||
{"itunes:episodeType": this.episodeType},
|
||||
{"itunes:season": this.season},
|
||||
{"itunes:episode": this.episode}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
module.exports = FeedEpisode
|
||||
module.exports = FeedEpisode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue