The relevant code is:
output = "plug:tvhdmi"
xbmc.executehttpapi('SetGUISetting(3; audiooutput.customdevice; %s)' % (str(output)))
xbmc.executehttpapi('SetGUISetting(3; audiooutput.custompassthrough; %s' % (str(output)))
The customdevice is changed correctly, but the custompassthrough doesn't get changed.
Here's the extract from my guisettings.xml file
I know setGUIsetting is supposed to take a number between 0-2 but the string still seems to get set for the first setting.
Is it actually possible to do this via python? Seems odd that I can change one, but not the other.