fix: use canonical UTF-8 encoding for NFO XML

This commit is contained in:
wimby
2026-09-25 20:33:50 +02:00
parent 0fe4dbe7c4
commit d30a808fbd

View File

@@ -1041,7 +1041,7 @@ class Media(models.Model):
))
nfo[-1].tail = '\n'
# Return XML tree as a prettified string
return ElementTree.tostring(nfo, encoding='utf8', method='xml').decode('utf8')
return ElementTree.tostring(nfo, encoding='utf-8', method='xml').decode('utf-8')
def get_download_state(self, task=None):
if self.downloaded: