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
aa2c132621
commit
549d0770e2
1 changed files with 1 additions and 2 deletions
|
|
@ -244,9 +244,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