Fix:Play button loading indicator when offline #990

This commit is contained in:
advplyr 2023-12-18 17:05:34 -06:00
parent 023c83ee78
commit ecf910dc55
4 changed files with 12 additions and 6 deletions

View file

@ -400,11 +400,12 @@ export default {
},
playerIsStartingForThisMedia() {
const mediaId = this.$store.state.playerStartingPlaybackMediaId
if (!mediaId) return false
if (this.isPodcast) {
if (!this.episodeStartingPlayback) return false
return mediaId === this.episodeStartingPlayback
} else {
return mediaId === this.serverLibraryItemId
return mediaId === this.serverLibraryItemId || mediaId === this.localLibraryItemId
}
},
tracks() {
@ -561,7 +562,7 @@ export default {
if (!value) return
}
this.$store.commit('setPlayerIsStartingPlayback', this.serverLibraryItemId)
this.$store.commit('setPlayerIsStartingPlayback', libraryItemId)
this.$eventBus.$emit('play-item', { libraryItemId, serverLibraryItemId: this.serverLibraryItemId, startTime })
}
},