mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
ee5e4580a6
commit
c47a8392ae
@ -1195,7 +1195,7 @@ class EpubContainer(Container):
|
||||
break
|
||||
if raw_unique_identifier is not None:
|
||||
idpf_key = raw_unique_identifier
|
||||
idpf_key = re.sub(u'\u0020\u0009\u000d\u000a', u'', idpf_key)
|
||||
idpf_key = re.sub(u'[\u0020\u0009\u000d\u000a]', u'', idpf_key)
|
||||
idpf_key = hashlib.sha1(idpf_key.encode('utf-8')).digest()
|
||||
key = None
|
||||
for item in self.opf_xpath('//*[local-name()="metadata"]/*'
|
||||
|
Loading…
x
Reference in New Issue
Block a user