mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MOBI metadata: Correctly handle long titles in non ASCII encodings when reading metadata
This commit is contained in:
parent
198ef55095
commit
c7aabab2db
@ -67,7 +67,10 @@ class EXTHHeader(object):
|
||||
pass
|
||||
elif id == 503: # Long title
|
||||
if not title or title == _('Unknown'):
|
||||
title = content
|
||||
try:
|
||||
title = content.decode(codec)
|
||||
except:
|
||||
pass
|
||||
#else:
|
||||
# print 'unknown record', id, repr(content)
|
||||
if title:
|
||||
|
Loading…
x
Reference in New Issue
Block a user