2023-11-14, 13:17
Hi At2010,
Thank you very much for all the info, before I make the change and test, I have a couple questions.
I am not a coder so I am not sure what is meant by
in method "write_file()" in your description.
I am on OSX and can change the lines in the code via text edit or directly in path finder as well.
I just want to be sure I am not missing something by overlooking in method "write_file()" in your description:
In the file "script.metadata.editor\resources\lib\nfo_updater.py" in method "write_file()" change the line (currently line 111):
In file nfo_updater.py
Around line 111, I see the following:
if PYTHON3:
content = ET.tostring(self.root).decode()
else:
content = ET.tostring(self.root, encoding='UTF-8', method='xml')
Your instructions has the word .decode() at the end of the line... I do not see it.
content = ET.tostring(self.root, encoding='UTF8', method='xml').decode()
my line just reads:
content = ET.tostring(self.root, encoding='UTF8', method='xml')
So, just to double check, should I replace line..
content = ET.tostring(self.root, encoding='UTF-8', method='xml')
with new line:
content = ET.tostring(self.root, encoding='UTF-8', method='xml', xml_declaration = True).decode("UTF-8")
Thanks again for your time and I look forward to trying it out.
Thank you very much for all the info, before I make the change and test, I have a couple questions.
I am not a coder so I am not sure what is meant by
in method "write_file()" in your description.
I am on OSX and can change the lines in the code via text edit or directly in path finder as well.
I just want to be sure I am not missing something by overlooking in method "write_file()" in your description:
In the file "script.metadata.editor\resources\lib\nfo_updater.py" in method "write_file()" change the line (currently line 111):
In file nfo_updater.py
Around line 111, I see the following:
if PYTHON3:
content = ET.tostring(self.root).decode()
else:
content = ET.tostring(self.root, encoding='UTF-8', method='xml')
Your instructions has the word .decode() at the end of the line... I do not see it.
content = ET.tostring(self.root, encoding='UTF8', method='xml').decode()
my line just reads:
content = ET.tostring(self.root, encoding='UTF8', method='xml')
So, just to double check, should I replace line..
content = ET.tostring(self.root, encoding='UTF-8', method='xml')
with new line:
content = ET.tostring(self.root, encoding='UTF-8', method='xml', xml_declaration = True).decode("UTF-8")
Thanks again for your time and I look forward to trying it out.