MOBI: When reading metadata from mobi files, put the contents of the ASIN field into an identifier named mobi-asin

This commit is contained in:
Kovid Goyal 2012-12-14 20:54:58 +05:30
parent cfdeffa2f7
commit 44636d61e7

View File

@ -126,6 +126,7 @@ class EXTHHeader(object): # {{{
elif idx == 113: # ASIN or other id elif idx == 113: # ASIN or other id
try: try:
self.uuid = content.decode('ascii') self.uuid = content.decode('ascii')
self.mi.set_identifier('mobi-asin', self.uuid)
except: except:
self.uuid = None self.uuid = None
elif idx == 116: elif idx == 116: