mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 21:49:48 -05:00
fix for bug 1074486 - Web interface doesn't save some options
This commit is contained in:
@@ -337,6 +337,10 @@ int config_write(WS_CONNINFO *pwsc) {
|
||||
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"));
|
||||
if(ws_getvar(pwsc,"art_filename") && strlen(ws_getvar(pwsc,"art_filename")))
|
||||
fprintf(configfile,"art_filename\t%s\n",ws_getvar(pwsc,"art_filename"));
|
||||
if(ws_getvar(pwsc,"logfile") && strlen(ws_getvar(pwsc,"logfile")))
|
||||
fprintf(configfile,"logfile\t\t%s\n",ws_getvar(pwsc,"logfile"));
|
||||
fprintf(configfile,"process_m3u\t%s\n",ws_getvar(pwsc,"process_m3u"));
|
||||
|
||||
fclose(configfile);
|
||||
|
||||
Reference in New Issue
Block a user