mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
GwR fix writing EXTH field #503 (title) in metadata
This commit is contained in:
parent
995348a914
commit
f443df8a66
@ -367,6 +367,9 @@ class MetadataUpdater(object):
|
|||||||
if self.thumbnail_record is not None:
|
if self.thumbnail_record is not None:
|
||||||
recs.append((202, pack('>I', self.thumbnail_rindex)))
|
recs.append((202, pack('>I', self.thumbnail_rindex)))
|
||||||
pop_exth_record(202)
|
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
|
# Restore any original EXTH fields that weren't updated
|
||||||
for id in sorted(self.original_exth_records):
|
for id in sorted(self.original_exth_records):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user