Ensure we render tag text properly in Subsonic XML

This commit is contained in:
Eliot Berriot 2019-07-19 07:53:37 +02:00
parent 9376f808e9
commit 904a482698
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
2 changed files with 9 additions and 3 deletions

View file

@ -53,5 +53,8 @@ def dict_to_xml_tree(root_tag, d, parent=None):
for obj in value:
root.append(dict_to_xml_tree(key, obj, parent=root))
else:
root.set(key, str(value))
if key == "value":
root.text = str(value)
else:
root.set(key, str(value))
return root