mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-31 00:05:27 +02:00
Update:Continue Reading and Read Again home page shelves for ebook only items #1782
This commit is contained in:
parent
1da471e136
commit
3e4c94e2b4
16 changed files with 132 additions and 95 deletions
|
@ -142,6 +142,9 @@ class Book {
|
|||
get numTracks() {
|
||||
return this.tracks.length
|
||||
}
|
||||
get isEBookOnly() {
|
||||
return this.ebookFile && !this.numTracks
|
||||
}
|
||||
|
||||
update(payload) {
|
||||
const json = this.toJSON()
|
||||
|
|
|
@ -57,7 +57,7 @@ class MediaProgress {
|
|||
}
|
||||
|
||||
get inProgress() {
|
||||
return !this.isFinished && (this.progress > 0 || this.ebookLocation != null)
|
||||
return !this.isFinished && (this.progress > 0 || (this.ebookLocation != null && this.ebookProgress > 0))
|
||||
}
|
||||
|
||||
setData(libraryItemId, progress, episodeId = null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue