mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-19 03:15:58 +02:00
Update:Continue Reading and Read Again home page shelves for ebook only items #1782
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user