From d7ed1d16199c57810925b129254f5014a74eb3d1 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 28 Sep 2017 19:15:33 +1000 Subject: [PATCH] Fix filescan --- src/files.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/files.c b/src/files.c index bac0d6d..f811335 100644 --- a/src/files.c +++ b/src/files.c @@ -1251,8 +1251,10 @@ void file_scan() { if (sqlite3_step(res) != SQLITE_ERROR) { new_files = sqlite3_column_int(res, 0); - s_printf(get_string(141), j, conf.file_directories[i]->file_subs[j]->name, new_files); - lines++; + if (new_files > 0) { + s_printf(get_string(141), j, conf.file_directories[i]->file_subs[j]->name, new_files); + lines++; + } } sqlite3_finalize(res); sqlite3_close(db); @@ -1264,5 +1266,7 @@ void file_scan() { } } } + s_printf(get_string(6)); + s_getc(); } }