Posts: 3,533
Joined: Jan 2011
Reputation:
376
pkscout
Team-Kodi Member
Posts: 3,533
I don't think you can set it in advanced settings. In the GUI go to SETTINGS > SERVICES > CONTROL. The first section in the Webserver config, and you can set a username and password for the web server there.
Posts: 38
Joined: Oct 2014
Reputation:
0
I know I can set it in the GUI, but I want to set it programmatically.
Posts: 10,679
Joined: Oct 2011
Reputation:
657
jjd-uk
Team-Kodi Member
Posts: 10,679
Those are likely saved in guisettings.xml so you maybe able set it in there directly without having to use the gui.
Posts: 38
Joined: Oct 2014
Reputation:
0
Right, I see that, but then I don't understand why activating the web interface is in the file called advancedsettings.xml, since this setting is also available in the GUI, so why not just have it in the guisettings.xml?
Posts: 10,679
Joined: Oct 2011
Reputation:
657
jjd-uk
Team-Kodi Member
Posts: 10,679
It's not in advancedsettings.xml what you can do is use advancedsettings.xml to things in the guisettings.xml
Posts: 10,679
Joined: Oct 2011
Reputation:
657
jjd-uk
Team-Kodi Member
Posts: 10,679
2023-12-01, 01:57
(This post was last modified: 2023-12-01, 01:58 by jjd-uk.)
Most likely, not in a position to check.
GUI settings are always in the style:
<setting id="categoryname.settingname">value</setting>
So to set them via advancedsettings.xml the style is:
<categoryname>
<settingname>value</settingname>
</categoryname>