From d25aa48213843dece646546dd648c2ed6e7ce2ee Mon Sep 17 00:00:00 2001 From: GRiker Date: Mon, 14 Jan 2013 13:41:21 -0700 Subject: [PATCH] Write EXTH 112 when exporting MOBI --- src/calibre/ebooks/metadata/mobi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/ebooks/metadata/mobi.py b/src/calibre/ebooks/metadata/mobi.py index e701946c01..8797cc67b1 100644 --- a/src/calibre/ebooks/metadata/mobi.py +++ b/src/calibre/ebooks/metadata/mobi.py @@ -390,6 +390,8 @@ class MetadataUpdater(object): not added_501 and not share_not_sync): from uuid import 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: update_exth_record((503, mi.title.encode(self.codec, 'replace')))