mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-09 20:58:10 -05:00
Put the daap options in the right mt-daapd.conf section.
Changed the config.html Save debugger to only print options that return errors.
This commit is contained in:
parent
62c3ac542a
commit
d9c1742744
@ -434,12 +434,15 @@ function saveForm() {
|
|||||||
getArr.push('key='+encodeURIComponent(a[1]));
|
getArr.push('key='+encodeURIComponent(a[1]));
|
||||||
getArr.push('value='+encodeURIComponent(value));
|
getArr.push('value='+encodeURIComponent(value));
|
||||||
getArr.push('verify_only=1');
|
getArr.push('verify_only=1');
|
||||||
var url = a[1] + '=' + value;
|
var output = a[0] + ':' + a[1] + '=' + value;
|
||||||
new Ajax.Request('/xml-rpc?method=setconfig&' + getArr.join('&'),
|
new Ajax.Request('/xml-rpc?method=setconfig&' + getArr.join('&'),
|
||||||
{method: 'get',
|
{method: 'get',
|
||||||
onComplete: function(req){console.log(url + ' => ' +
|
onComplete: function(req){
|
||||||
Element.textContent(req.responseXML.getElementsByTagName('statusstring')[0]));
|
var errorString = Element.textContent(req.responseXML.getElementsByTagName('statusstring')[0]);
|
||||||
} });
|
if (errorString != 'Success') {
|
||||||
|
console.log(output + ' => ' + errorString);
|
||||||
|
}
|
||||||
|
}});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -202,8 +202,9 @@
|
|||||||
</options>
|
</options>
|
||||||
</item>
|
</item>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section name="Daap">
|
<section name="Daap">
|
||||||
<item id="empty_strings" advanced="true" config_section="general">
|
<item id="empty_strings" advanced="true" config_section="daap">
|
||||||
<name>Empty strings</name>
|
<name>Empty strings</name>
|
||||||
<short_description></short_description>
|
<short_description></short_description>
|
||||||
<type default_value="0">select</type>
|
<type default_value="0">select</type>
|
||||||
@ -212,7 +213,7 @@
|
|||||||
<option value="1">Yes</option>
|
<option value="1">Yes</option>
|
||||||
</options>
|
</options>
|
||||||
</item>
|
</item>
|
||||||
<item id="supports_update" advanced="true" config_section="general">
|
<item id="supports_update" advanced="true" config_section="daap">
|
||||||
<name>Supports update</name>
|
<name>Supports update</name>
|
||||||
<short_description></short_description>
|
<short_description></short_description>
|
||||||
<type default_value="1">select</type>
|
<type default_value="1">select</type>
|
||||||
@ -222,6 +223,7 @@
|
|||||||
</options>
|
</options>
|
||||||
</item>
|
</item>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section name="Plugins">
|
<section name="Plugins">
|
||||||
<item id="plugin_dir" advanced="true" config_section="plugins" restart="true">
|
<item id="plugin_dir" advanced="true" config_section="plugins" restart="true">
|
||||||
<name>Plugin Directory</name>
|
<name>Plugin Directory</name>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user