mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-06 07:25:03 +02:00
Add support for seasonal podcasts
Podcasts such as [Command Line Heroes](https://podcasts.apple.com/us/podcast/command-line-heroes/id1319947289) have multiple seasons in which each has it's own , . This seaks to add support for such podcast series.
This commit is contained in:
parent
ef0243f1d7
commit
cc285bb685
5 changed files with 17 additions and 1 deletions
|
@ -9,6 +9,7 @@ class PodcastEpisode {
|
|||
this.id = null
|
||||
this.index = null
|
||||
|
||||
this.season = null
|
||||
this.episode = null
|
||||
this.episodeType = null
|
||||
this.title = null
|
||||
|
@ -31,6 +32,7 @@ class PodcastEpisode {
|
|||
this.libraryItemId = episode.libraryItemId
|
||||
this.id = episode.id
|
||||
this.index = episode.index
|
||||
this.season = episode.season
|
||||
this.episode = episode.episode
|
||||
this.episodeType = episode.episodeType
|
||||
this.title = episode.title
|
||||
|
@ -51,6 +53,7 @@ class PodcastEpisode {
|
|||
libraryItemId: this.libraryItemId,
|
||||
id: this.id,
|
||||
index: this.index,
|
||||
season: this.season,
|
||||
episode: this.episode,
|
||||
episodeType: this.episodeType,
|
||||
title: this.title,
|
||||
|
@ -70,6 +73,7 @@ class PodcastEpisode {
|
|||
libraryItemId: this.libraryItemId,
|
||||
id: this.id,
|
||||
index: this.index,
|
||||
season: this.season,
|
||||
episode: this.episode,
|
||||
episodeType: this.episodeType,
|
||||
title: this.title,
|
||||
|
@ -117,6 +121,7 @@ class PodcastEpisode {
|
|||
this.pubDate = data.pubDate || ''
|
||||
this.description = data.description || ''
|
||||
this.enclosure = data.enclosure ? { ...data.enclosure } : null
|
||||
this.season = data.season || ''
|
||||
this.episode = data.episode || ''
|
||||
this.episodeType = data.episodeType || ''
|
||||
this.publishedAt = data.publishedAt || 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue