Fix:Show play button playing on local and non-local item pages #487

This commit is contained in:
advplyr
2023-01-08 14:50:21 -06:00
parent aac77949b4
commit 89041c4141
+2 -1
View File
@@ -299,7 +299,7 @@ export default {
}, },
userTimeRemaining() { userTimeRemaining() {
if (!this.userItemProgress) return 0 if (!this.userItemProgress) return 0
var duration = this.userItemProgress.duration || this.duration const duration = this.userItemProgress.duration || this.duration
return duration - this.userItemProgress.currentTime return duration - this.userItemProgress.currentTime
}, },
progressPercent() { progressPercent() {
@@ -315,6 +315,7 @@ export default {
return this.isPlaying && !this.$store.state.playerIsLocal return this.isPlaying && !this.$store.state.playerIsLocal
}, },
isPlaying() { isPlaying() {
if (this.localLibraryItemId && this.$store.getters['getIsItemStreaming'](this.localLibraryItemId)) return true
return this.$store.getters['getIsItemStreaming'](this.libraryItemId) return this.$store.getters['getIsItemStreaming'](this.libraryItemId)
}, },
numTracks() { numTracks() {