mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-24 22:25:56 -05:00
fix for bug 1074486 - Web interface doesn't save some options
This commit is contained in:
parent
1261535d75
commit
7f1ca1f552
@ -36,6 +36,14 @@ take effect.
|
|||||||
<TD>Server Name</TD>
|
<TD>Server Name</TD>
|
||||||
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="SERVERNAME" VALUE="@SERVERNAME@"></TD>
|
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="SERVERNAME" VALUE="@SERVERNAME@"></TD>
|
||||||
</TR>
|
</TR>
|
||||||
|
<TR>
|
||||||
|
<TD>Logfile</TD>
|
||||||
|
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="LOGFILE" VALUE="@LOGFILE@"></TD>
|
||||||
|
</TR>
|
||||||
|
<TR>
|
||||||
|
<TD>Art Filename</TD>
|
||||||
|
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="ART_FILENAME" VALUE="@ART_FILENAME@"></TD>
|
||||||
|
</TR>
|
||||||
<TR>
|
<TR>
|
||||||
<TD>Run As</TD>
|
<TD>Run As</TD>
|
||||||
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="RUNAS" VALUE="@RUNAS@"></TD>
|
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="RUNAS" VALUE="@RUNAS@"></TD>
|
||||||
|
@ -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,"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,"rescan_interval\t%s\n",ws_getvar(pwsc,"rescan_interval"));
|
||||||
fprintf(configfile,"always_scan\t%s\n",ws_getvar(pwsc,"always_scan"));
|
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"));
|
fprintf(configfile,"process_m3u\t%s\n",ws_getvar(pwsc,"process_m3u"));
|
||||||
|
|
||||||
fclose(configfile);
|
fclose(configfile);
|
||||||
|
Loading…
Reference in New Issue
Block a user