MOBI metadata: When setting title, set in both PalmDoc and EXTH headers

This commit is contained in:
Kovid Goyal 2010-02-21 16:38:40 -07:00
commit e3fac897f0

View File

@ -367,6 +367,9 @@ class MetadataUpdater(object):
if self.thumbnail_record is not None:
recs.append((202, pack('>I', self.thumbnail_rindex)))
pop_exth_record(202)
if mi.title is not None:
recs.append((503, mi.title.encode(self.codec, 'replace')))
pop_exth_record(503)
# Restore any original EXTH fields that weren't updated
for id in sorted(self.original_exth_records):