From 5a5163e699e0c15146af2882e384339bdfd4ec00 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sun, 11 May 2014 23:17:29 +0200 Subject: [PATCH] Move db_analyze/db_hook_post_scan (credit @chme) --- src/filescanner.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/filescanner.c b/src/filescanner.c index 2b64c017..0a9622fe 100644 --- a/src/filescanner.c +++ b/src/filescanner.c @@ -1006,6 +1006,9 @@ bulk_scan(int flags) db_purge_cruft(start); DPRINTF(E_LOG, L_SCAN, "Bulk library scan completed in %.f sec\n", difftime(end, start)); + + DPRINTF(E_DBG, L_SCAN, "Running post library scan jobs\n"); + db_hook_post_scan(); } } @@ -1052,8 +1055,6 @@ filescanner(void *arg) else bulk_scan(F_SCAN_BULK); - db_hook_post_scan(); - if (!scan_exit) { /* Enable inotify */