mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-06 21:05:24 +02:00
Add:New scanner and scanner server settings
This commit is contained in:
@@ -16,7 +16,7 @@ function isBookFile(path) {
|
||||
// TODO: Function needs to be re-done
|
||||
// Input: array of relative file paths
|
||||
// Output: map of files grouped into potential audiobook dirs
|
||||
function groupFilesIntoAudiobookPaths(paths, useAllFileTypes = false) {
|
||||
function groupFilesIntoAudiobookPaths(paths) {
|
||||
// Step 1: Clean path, Remove leading "/", Filter out files in root dir
|
||||
var pathsFiltered = paths.map(path => {
|
||||
return path.startsWith('/') ? path.slice(1) : path
|
||||
|
||||
Reference in New Issue
Block a user