mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-12 18:35:00 +02:00
Podcast episode audio file to always use index 1
This commit is contained in:
parent
bd5e865a11
commit
6d823f4e42
3 changed files with 4 additions and 2 deletions
|
@ -172,7 +172,6 @@ export default {
|
|||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -41,6 +41,8 @@ class PodcastEpisode {
|
|||
this.publishedAt = episode.publishedAt
|
||||
this.addedAt = episode.addedAt
|
||||
this.updatedAt = episode.updatedAt
|
||||
|
||||
this.audioFile.index = 1 // Only 1 audio file per episode
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
|
|
|
@ -210,6 +210,7 @@ class Podcast {
|
|||
addNewEpisodeFromAudioFile(audioFile, index) {
|
||||
var pe = new PodcastEpisode()
|
||||
pe.libraryItemId = this.libraryItemId
|
||||
audioFile.index = 1 // Only 1 audio file per episode
|
||||
pe.setDataFromAudioFile(audioFile, index)
|
||||
this.episodes.push(pe)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue