mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 01:49:56 +02:00
Ensure we render tag text properly in Subsonic XML
This commit is contained in:
parent
9376f808e9
commit
904a482698
2 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue