mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
c47a8392ae
commit
5194086157
@ -39,7 +39,7 @@ class EPUBInput(InputFormatPlugin):
|
|||||||
import uuid, hashlib
|
import uuid, hashlib
|
||||||
idpf_key = opf.raw_unique_identifier
|
idpf_key = opf.raw_unique_identifier
|
||||||
if idpf_key:
|
if idpf_key:
|
||||||
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()
|
idpf_key = hashlib.sha1(idpf_key.encode('utf-8')).digest()
|
||||||
key = None
|
key = None
|
||||||
for item in opf.identifier_iter():
|
for item in opf.identifier_iter():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user