Use local image as cover if found, adding release-it version control

This commit is contained in:
advplyr 2021-08-21 13:02:24 -05:00
parent 7d4e2e3d97
commit f30fa2fb0c
18 changed files with 2200 additions and 142 deletions

View file

@ -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()