mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MOBI metadata: Support writing of book producer field into MOBI files. Fixes #1154353 (Command line unable to set Book Producer)
This commit is contained in:
parent
4519ff1db1
commit
0967513c1a
@ -397,6 +397,10 @@ class MetadataUpdater(object):
|
|||||||
if 503 in self.original_exth_records:
|
if 503 in self.original_exth_records:
|
||||||
update_exth_record((503, mi.title.encode(self.codec, 'replace')))
|
update_exth_record((503, mi.title.encode(self.codec, 'replace')))
|
||||||
|
|
||||||
|
# Update book producer
|
||||||
|
if getattr(mi, 'book_producer', False):
|
||||||
|
update_exth_record((108, mi.book_producer.encode(self.codec, 'replace')))
|
||||||
|
|
||||||
# Include remaining original EXTH fields
|
# Include remaining original EXTH fields
|
||||||
for id in sorted(self.original_exth_records):
|
for id in sorted(self.original_exth_records):
|
||||||
recs.append((id, self.original_exth_records[id]))
|
recs.append((id, self.original_exth_records[id]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user