Fix config page not scrolling, add scroll arrows on home page, fix routing issue on back button, fix continue reading shelf

This commit is contained in:
advplyr 2021-09-28 17:36:41 -05:00
parent 8389a31775
commit 8dc0acb6b7
11 changed files with 195 additions and 95 deletions

View file

@ -488,7 +488,6 @@ class Audiobook {
setChapters() {
// If 1 audio file without chapters, then no chapters will be set
var includedAudioFiles = this.audioFiles.filter(af => !af.exclude)
if (includedAudioFiles.length === 1) {
// 1 audio file with chapters
@ -524,7 +523,7 @@ class Audiobook {
id: currChapterId++,
start: currStartTime,
end: currStartTime + file.duration,
title: `Chapter ${currChapterId}`
title: file.filename ? Path.basename(file.filename, Path.extname(file.filename)) : `Chapter ${currChapterId}`
})
currStartTime += file.duration
}