mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Write EXTH 112 when exporting MOBI
This commit is contained in:
parent
bf34daf400
commit
d25aa48213
@ -390,6 +390,8 @@ class MetadataUpdater(object):
|
|||||||
not added_501 and not share_not_sync):
|
not added_501 and not share_not_sync):
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
update_exth_record((113, str(uuid4())))
|
update_exth_record((113, str(uuid4())))
|
||||||
|
# Add a 112 record with actual UUID
|
||||||
|
update_exth_record((112, str("calibre:%s" % mi.uuid)))
|
||||||
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')))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user