mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-02 17:24:57 +02:00
Use local image as cover if found, adding release-it version control
This commit is contained in:
parent
7d4e2e3d97
commit
f30fa2fb0c
18 changed files with 2200 additions and 142 deletions
|
@ -40,6 +40,10 @@ async function getAllAudiobookFiles(abRootPath) {
|
|||
|
||||
// If relative file directory has 3 folders, then the middle folder will be series
|
||||
var splitDir = pathformat.dir.split(Path.sep)
|
||||
if (splitDir.length === 1) {
|
||||
Logger.error('Invalid file in root dir', filepath)
|
||||
return
|
||||
}
|
||||
var author = splitDir.shift()
|
||||
var series = null
|
||||
if (splitDir.length > 1) series = splitDir.shift()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue