From a78aa88dbcc66575cc47f36245f24627363e1ce4 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 3 Jul 2022 14:41:07 -0500 Subject: [PATCH] Fix:Audiobooks incorrectly flagged as single file root audiobooks #714 --- server/utils/scandir.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/scandir.js b/server/utils/scandir.js index f60a5ebd..a2c8f932 100644 --- a/server/utils/scandir.js +++ b/server/utils/scandir.js @@ -163,9 +163,9 @@ async function scanFolder(libraryMediaType, folder, serverSettings = {}) { return [] } - var isFile = false // item is not in a folder var items = [] for (const libraryItemPath in libraryItemGrouping) { + var isFile = false // item is not in a folder var libraryItemData = null var fileObjs = [] if (libraryItemPath === libraryItemGrouping[libraryItemPath]) {