This commit is contained in:
2026-01-15 16:26:22 -08:00
parent dabc8f9d51
commit cb679235bd
7 changed files with 125 additions and 54 deletions

View File

@@ -101,8 +101,10 @@ class Folder(Store):
cached = Folder._scan_cache.get(location_key)
if cached is None:
try:
debug(f"[folder] Initializing library scan for {location_path}...")
initializer = LocalLibraryInitializer(location_path)
stats = initializer.scan_and_index() or {}
debug(f"[folder] Scan complete. Stats: {stats}")
files_new = int(stats.get("files_new", 0) or 0)
sidecars = int(stats.get("sidecars_imported", 0) or 0)
total_db = int(stats.get("files_total_db", 0) or 0)