fix: use canonical UTF-8 encoding for NFO XML
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user