py3: Fix regression causing uuid to not be inserted as ASIN

This commit is contained in:
Kovid Goyal 2021-06-30 22:10:40 +05:30
parent 6ab3534103
commit f893013435
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)))