diff --git a/components/app/AudioPlayerContainer.vue b/components/app/AudioPlayerContainer.vue index 29fff400..757c39f3 100644 --- a/components/app/AudioPlayerContainer.vue +++ b/components/app/AudioPlayerContainer.vue @@ -290,6 +290,8 @@ export default { * When device gains focus then refresh the timestamps in the audio player */ deviceFocused(hasFocus) { + if (!this.$store.state.currentPlaybackSession) return + if (hasFocus) { if (!this.$refs.audioPlayer?.isPlaying) { const playbackSession = this.$store.state.currentPlaybackSession diff --git a/components/bookshelf/LazyBookshelf.vue b/components/bookshelf/LazyBookshelf.vue index 923e3b6b..c99307d3 100644 --- a/components/bookshelf/LazyBookshelf.vue +++ b/components/bookshelf/LazyBookshelf.vue @@ -164,7 +164,7 @@ export default { const entityPath = this.entityName === 'books' || this.entityName === 'series-books' ? `items` : this.entityName const sfQueryString = this.currentSFQueryString ? this.currentSFQueryString + '&' : '' - const fullQueryString = `?${sfQueryString}limit=${this.booksPerFetch}&page=${page}&minified=1&include=rssfeed` + const fullQueryString = `?${sfQueryString}limit=${this.booksPerFetch}&page=${page}&minified=1&include=rssfeed,numEpisodesIncomplete` const payload = await this.$axios.$get(`/api/libraries/${this.currentLibraryId}/${entityPath}${fullQueryString}`).catch((error) => { console.error('failed to fetch books', error) diff --git a/components/cards/LazyBookCard.vue b/components/cards/LazyBookCard.vue index 61318361..c47dd986 100644 --- a/components/cards/LazyBookCard.vue +++ b/components/cards/LazyBookCard.vue @@ -81,9 +81,14 @@ -
{{ numEpisodes }}
{{ numEpisodesIncomplete }}
+