mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:04:39 +02:00
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:
parent
cfdeffa2f7
commit
44636d61e7
1 changed files with 1 additions and 0 deletions
|
|
@ -126,6 +126,7 @@ def process_metadata(self, idx, content, codec):
|
|||
elif idx == 113: # ASIN or other id
|
||||
try:
|
||||
self.uuid = content.decode('ascii')
|
||||
self.mi.set_identifier('mobi-asin', self.uuid)
|
||||
except:
|
||||
self.uuid = None
|
||||
elif idx == 116:
|
||||
|
|
|
|||
Loading…
Reference in a new issue