mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-12 12:21:34 +00:00
Increase chapter end tolerance to 0.75
This commit is contained in:
parent
0c2f8b70d3
commit
812080f902
1 changed files with 1 additions and 2 deletions
|
|
@ -248,9 +248,8 @@ export default {
|
||||||
},
|
},
|
||||||
checkChapterEnd(time) {
|
checkChapterEnd(time) {
|
||||||
const chapterEndTime = this.currentChapter.end
|
const chapterEndTime = this.currentChapter.end
|
||||||
const tolerance = 0.5
|
const tolerance = 0.75
|
||||||
if (time >= chapterEndTime - tolerance) {
|
if (time >= chapterEndTime - tolerance) {
|
||||||
console.log('Chapter end reached', time, chapterEndTime)
|
|
||||||
this.sleepTimerEnd()
|
this.sleepTimerEnd()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue