mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:24:57 +02:00
GwR fix writing EXTH field #503 (title) in metadata
This commit is contained in:
parent
995348a914
commit
f443df8a66
1 changed files with 3 additions and 0 deletions
|
|
@ -367,6 +367,9 @@ def pop_exth_record(exth_id):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue