mirror of
https://github.com/owntone/owntone-server.git
synced 2025-12-08 16:53:12 -05:00
expose always_rescan option
This commit is contained in:
@@ -107,6 +107,7 @@ CONFIGELEMENT config_elements[] = {
|
||||
#endif
|
||||
{ 1,1,0,CONFIG_TYPE_STRING,"servername",(void*)&config.servername,config_emit_string },
|
||||
{ 1,0,0,CONFIG_TYPE_INT,"rescan_interval",(void*)&config.rescan_interval,config_emit_int },
|
||||
{ 1,0,0,CONFIG_TYPE_INT,"always_scan",(void*)&config.always_scan,config_emit_int },
|
||||
{ 1,0,0,CONFIG_TYPE_INT,"process_m3u",(void*)&config.rescan_interval,config_emit_int },
|
||||
{ 1,0,0,CONFIG_TYPE_STRING,"playlist",(void*)&config.playlist,config_emit_string },
|
||||
{ 1,0,0,CONFIG_TYPE_STRING,"extensions",(void*)&config.extensions,config_emit_string },
|
||||
@@ -335,6 +336,7 @@ int config_write(WS_CONNINFO *pwsc) {
|
||||
fprintf(configfile,"extensions\t%s\n",ws_getvar(pwsc,"extensions"));
|
||||
fprintf(configfile,"db_dir\t\t%s\n",ws_getvar(pwsc,"db_dir"));
|
||||
fprintf(configfile,"rescan_interval\t%s\n",ws_getvar(pwsc,"rescan_interval"));
|
||||
fprintf(configfile,"always_scan\t%s\n",ws_getvar(pwsc,"always_scan"));
|
||||
fprintf(configfile,"process_m3u\t%s\n",ws_getvar(pwsc,"process_m3u"));
|
||||
|
||||
fclose(configfile);
|
||||
|
||||
@@ -51,7 +51,7 @@ typedef struct tag_config {
|
||||
char *web_root; /**< path to the directory containing the admin-root files */
|
||||
int port; /**< port to listen on */
|
||||
int rescan_interval; /**< How often to do a background rescan of the file system */
|
||||
int always_scan; /**< 0 to minimize disk usage (embedded devices) - not in config */
|
||||
int always_scan; /**< 0 to minimize disk usage (embedded devices) */
|
||||
int process_m3u; /**< Should we process m3u files? */
|
||||
char *adminpassword; /**< Password to web management pages */
|
||||
char *readpassword; /**< iTunes password */
|
||||
|
||||
Reference in New Issue
Block a user