New model update audio player, stream, collections

This commit is contained in:
advplyr 2022-03-12 19:59:35 -06:00
parent 2d19208340
commit 65df377a49
20 changed files with 145 additions and 145 deletions

View file

@ -437,7 +437,7 @@ export default {
})
},
startStream() {
this.$eventBus.$emit('play-audiobook', this.audiobook.id)
this.$eventBus.$emit('play-item', this.audiobook.id)
},
editClick() {
this.$store.commit('setBookshelfBookIds', [])

View file

@ -87,7 +87,7 @@ export default {
})
},
streaming() {
return !!this.playableBooks.find((b) => b.id === this.$store.getters['getAudiobookIdStreaming'])
return !!this.playableBooks.find((b) => b.id === this.$store.getters['getLibraryItemIdStreaming'])
},
showPlayButton() {
return this.playableBooks.length
@ -120,7 +120,7 @@ export default {
clickPlay() {
var nextBookNotRead = this.playableBooks.find((pb) => !this.userAudiobooks[pb.id] || !this.userAudiobooks[pb.id].isRead)
if (nextBookNotRead) {
this.$eventBus.$emit('play-audiobook', nextBookNotRead.id)
this.$eventBus.$emit('play-item', nextBookNotRead.id)
}
}
},

View file

@ -418,7 +418,7 @@ export default {
})
},
startStream() {
this.$eventBus.$emit('play-audiobook', this.libraryItem.id)
this.$eventBus.$emit('play-item', this.libraryItem.id)
},
editClick() {
this.$store.commit('setBookshelfBookIds', [])