[library/spotify] Implement rescan in spotify.c and purge old files

after rescan
This commit is contained in:
chme
2017-01-01 16:51:21 +01:00
parent 0bea83cafa
commit ae1a45bacc
5 changed files with 42 additions and 14 deletions

View File

@@ -572,6 +572,8 @@ rescan(void *arg, int *ret)
sources[i]->rescan();
}
purge_cruft(starttime);
endtime = time(NULL);
DPRINTF(E_LOG, L_LIB, "Library rescan completed in %.f sec\n", difftime(endtime, starttime));
@@ -646,10 +648,13 @@ initscan()
sources[i]->initscan();
}
purge_cruft(starttime);
if (! (cfg_getbool(cfg_getsec(cfg, "library"), "filescan_disable")))
{
purge_cruft(starttime);
DPRINTF(E_DBG, L_LIB, "Running post library scan jobs\n");
db_hook_post_scan();
DPRINTF(E_DBG, L_LIB, "Running post library scan jobs\n");
db_hook_post_scan();
}
endtime = time(NULL);
DPRINTF(E_LOG, L_LIB, "Library init scan completed in %.f sec\n", difftime(endtime, starttime));