mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
TXT metadata reader: handle unicode characters.
This commit is contained in:
parent
9535021e8e
commit
e6bef70a7e
@ -14,9 +14,9 @@ def get_metadata(stream, extract_cover=True):
|
||||
mi = MetaInformation(_('Unknown'), [_('Unknown')])
|
||||
stream.seek(0)
|
||||
|
||||
mdata = ''
|
||||
mdata = u''
|
||||
for x in range(0, 4):
|
||||
line = stream.readline()
|
||||
line = stream.readline().decode('utf-8')
|
||||
if line == '':
|
||||
break
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user