mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
Show scan completion in logs
This commit is contained in:
parent
bccd2e473f
commit
f9d27a4773
@ -417,11 +417,16 @@ int main(int argc, char *argv[]) {
|
|||||||
DPRINTF(E_LOG,L_MAIN|L_SCAN,"Starting mp3 scan\n");
|
DPRINTF(E_LOG,L_MAIN|L_SCAN,"Starting mp3 scan\n");
|
||||||
|
|
||||||
plugin_event_dispatch(PLUGIN_EVENT_FULLSCAN_START,0,NULL,0);
|
plugin_event_dispatch(PLUGIN_EVENT_FULLSCAN_START,0,NULL,0);
|
||||||
|
start_time=(int) time(NULL);
|
||||||
if(scan_init(mp3_dir_array)) {
|
if(scan_init(mp3_dir_array)) {
|
||||||
DPRINTF(E_LOG,L_MAIN|L_SCAN,"Error scanning MP3 files: %s\n",strerror(errno));
|
DPRINTF(E_LOG,L_MAIN|L_SCAN,"Error scanning MP3 files: %s\n",strerror(errno));
|
||||||
}
|
}
|
||||||
if(!config.stop) { /* don't send popup when shutting down on scan */
|
if(!config.stop) { /* don't send popup when shutting down */
|
||||||
plugin_event_dispatch(PLUGIN_EVENT_FULLSCAN_END,0,NULL,0);
|
plugin_event_dispatch(PLUGIN_EVENT_FULLSCAN_END,0,NULL,0);
|
||||||
|
err=db_get_song_count(&perr,&song_count);
|
||||||
|
end_time=(int) time(NULL);
|
||||||
|
DPRINTF(E_LOG,L_MAIN|L_SCAN,"Scanned %d songs in %d seconds\n",
|
||||||
|
song_count,end_time - start_time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
conf_dispose_array(mp3_dir_array);
|
conf_dispose_array(mp3_dir_array);
|
||||||
|
Loading…
Reference in New Issue
Block a user