mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3: Fix regression causing uuid to not be inserted as ASIN
This commit is contained in:
parent
6ab3534103
commit
f893013435
@ -395,7 +395,7 @@ class MetadataUpdater(object):
|
||||
update_exth_record((202, pack('>I', self.thumbnail_rindex)))
|
||||
# Add a 113 record if not present to allow Amazon syncing
|
||||
if (113 not in self.original_exth_records and
|
||||
self.original_exth_records.get(501, None) == 'EBOK' and
|
||||
self.original_exth_records.get(501, None) == b'EBOK' and
|
||||
not added_501 and not share_not_sync):
|
||||
from uuid import uuid4
|
||||
update_exth_record((113, unicode_type(uuid4()).encode(self.codec)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user