mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-31 19:18:57 +01:00
Podcast episode audio file to always use index 1
This commit is contained in:
parent
bd5e865a11
commit
6d823f4e42
@ -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…
Reference in New Issue
Block a user