mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-29 14:35:30 +01:00
EPUB metadata: Strip pointless urn:isbn: prefix from ISBN declaration when reading metadata
This commit is contained in:
parent
fc6981d1d5
commit
ee808594ca
1 changed files with 2 additions and 0 deletions
|
|
@ -883,6 +883,8 @@ def get_identifiers(self):
|
|||
val = etree.tostring(x, with_tail=False, encoding=unicode,
|
||||
method='text').strip()
|
||||
if val and typ not in ('calibre', 'uuid'):
|
||||
if typ == 'isbn' and val.lower().startswith('urn:isbn:'):
|
||||
val = val[len('urn:isbn:'):]
|
||||
identifiers[typ] = val
|
||||
found_scheme = True
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in a new issue