Update testresults on windows

Added encoding on fb2 upload
This commit is contained in:
Ozzie Isaacs
2021-05-19 19:21:09 +02:00
parent a0449b50c8
commit c85cfa90a4
3 changed files with 2733 additions and 1207 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ def get_fb2_info(tmp_file_path, original_file_extension):
'l': 'http://www.w3.org/1999/xlink',
}
fb2_file = open(tmp_file_path)
fb2_file = open(tmp_file_path, encoding="utf-8")
tree = etree.fromstring(fb2_file.read().encode())
authors = tree.xpath('/fb:FictionBook/fb:description/fb:title-info/fb:author', namespaces=ns)