mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Fix libraries sync when jellyfin library has apostrophes in name
This commit is contained in:
parent
3775f4a79a
commit
b3b33c902a
1 changed files with 5 additions and 1 deletions
|
@ -293,7 +293,11 @@ def indent(elem, level=0):
|
||||||
def write_xml(content, file):
|
def write_xml(content, file):
|
||||||
with open(file, 'w') as infile:
|
with open(file, 'w') as infile:
|
||||||
|
|
||||||
content = content.replace("'", '"')
|
def replace_apostrophes(match):
|
||||||
|
return match.group(0).replace("'", '"')
|
||||||
|
|
||||||
|
content = re.sub("<(.*?)>", replace_apostrophes, content)
|
||||||
|
|
||||||
content = content.replace('?>', ' standalone="yes" ?>', 1)
|
content = content.replace('?>', ' standalone="yes" ?>', 1)
|
||||||
infile.write(content)
|
infile.write(content)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue