store metadata per user. remove primaryid. only store isbn13
This commit is contained in:
parent
90648f9e65
commit
02e040d9f5
16 changed files with 245 additions and 192 deletions
|
|
@ -46,11 +46,10 @@ def info(key, value):
|
|||
info['publisher'], info['edition'] = info['publisher'].split('; ', 1)
|
||||
|
||||
if 'ISBN-13' in content_info:
|
||||
if not 'isbn' in info: info['isbn'] = []
|
||||
info['isbn'] = content_info['ISBN-13'].replace('-', '')
|
||||
info['isbn'].append(content_info['ISBN-13'].replace('-', ''))
|
||||
if 'ISBN-10' in content_info:
|
||||
if not 'isbn' in info: info['isbn'] = []
|
||||
info['isbn'].append(content_info['ISBN-10'])
|
||||
elif 'ISBN-10' in content_info:
|
||||
info['isbn'] = stdnum.isbn.to_isbn13(content_info['ISBN-10'])
|
||||
|
||||
a = doc.xpath('//span[@class="a-size-medium"]')
|
||||
if a:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue