mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-24 22:25:56 -05:00
Implement option to skip initial start-up scan, useful for windows machines. Fixes ticket #208
This commit is contained in:
parent
3d352427f6
commit
69eb216e59
@ -136,6 +136,7 @@ static CONF_ELEMENTS conf_elements[] = {
|
||||
{ 0, 0, CONF_T_INT,"scanning","concat_compilations" },
|
||||
{ 0, 0, CONF_T_INT,"scanning","case_sensitive" },
|
||||
{ 0, 0, CONF_T_INT,"scanning","follow_symlinks" },
|
||||
{ 0, 0, CONF_T_INT,"scanning","skip_first" },
|
||||
{ 0, 0, CONF_T_INT,"scan","correct_order" },
|
||||
{ 0, 0, CONF_T_INT, NULL, NULL }
|
||||
};
|
||||
|
@ -518,7 +518,8 @@ int main(int argc, char *argv[]) {
|
||||
DPRINTF(E_LOG,L_MAIN,"Serving %d songs. Startup complete in %d seconds\n",
|
||||
song_count,end_time-start_time);
|
||||
|
||||
if(conf_get_int("general","rescan_interval",0) && (!reload))
|
||||
if(conf_get_int("general","rescan_interval",0) && (!reload) &&
|
||||
(!conf_get_int("scanning","skip_first",0)))
|
||||
config.reload = 1; /* force a reload on start */
|
||||
|
||||
while(!config.stop) {
|
||||
|
Loading…
Reference in New Issue
Block a user