mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-29 14:28:34 +02:00
Revert podcast episode local playback event
This commit is contained in:
parent
4ad54f34fe
commit
d42cbfe3e4
1 changed files with 15 additions and 6 deletions
|
@ -265,12 +265,21 @@ export default {
|
||||||
this.$eventBus.$emit('pause-item')
|
this.$eventBus.$emit('pause-item')
|
||||||
} else {
|
} else {
|
||||||
this.$store.commit('setPlayerIsStartingPlayback', this.episode.id)
|
this.$store.commit('setPlayerIsStartingPlayback', this.episode.id)
|
||||||
|
|
||||||
|
if (this.localEpisode && this.localLibraryItemId) {
|
||||||
|
console.log('Play local episode', this.localEpisode.id, this.localLibraryItemId)
|
||||||
this.$eventBus.$emit('play-item', {
|
this.$eventBus.$emit('play-item', {
|
||||||
libraryItemId: this.libraryItemId,
|
libraryItemId: this.localLibraryItemId,
|
||||||
episodeId: this.episode.id,
|
episodeId: this.localEpisode.id,
|
||||||
serverLibraryItemId: this.libraryItemId,
|
serverLibraryItemId: this.libraryItemId,
|
||||||
serverEpisodeId: this.episode.id
|
serverEpisodeId: this.episode.id
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
this.$eventBus.$emit('play-item', {
|
||||||
|
libraryItemId: this.libraryItemId,
|
||||||
|
episodeId: this.episode.id
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async toggleFinished() {
|
async toggleFinished() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue