This commit is contained in:
Kovid Goyal 2022-01-08 11:51:15 +05:30
parent eb78a761a9
commit f47f50d359
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -109,7 +109,7 @@ def convert_book(path_to_ebook, opf_path, cover_path, output_fmt, recs):
status_file = share_open('status', 'wb') status_file = share_open('status', 'wb')
def notification(percent, msg=''): def notification(percent, msg=''):
status_file.write(f'{percent}:{msg}|||\n'.encode('utf-8')) status_file.write(f'{percent}:{msg}|||\n'.encode())
status_file.flush() status_file.flush()
output_path = os.path.abspath('output.' + output_fmt.lower()) output_path = os.path.abspath('output.' + output_fmt.lower())