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

This commit is contained in:
Mark Cooper committed 2021-08-21 13:02:24 -05:00
1 parent 30700c1eb0
commit eab8edce8d
18 files changed
+2200 -142

No files matched your search

+4
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()