Update server/objects/mediaTypes/Book.js

This commit is contained in:
advplyr 2023-01-30 17:50:50 -06:00 committed by GitHub
parent 4770be5a39
commit 0203f9cc1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -444,7 +444,7 @@ class Book {
id: c.id + currChapterId,
start: c.start + currStartTime,
end: c.end + currStartTime,
}))
})) ?? []
this.chapters = this.chapters.concat(chapters)
currChapterId += file.chapters?.length ?? 0