mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-20 07:31:34 +01:00
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:
1 parent
868e1af28a
commit
0da327222e
11 files changed
+195
-95
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user