mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-21 08:01:34 +01:00
Use local image as cover if found, adding release-it version control
This commit is contained in:
1 parent
30700c1eb0
commit
eab8edce8d
18 files changed
+2200
-142
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user