mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1498207 [Edit Book: CheckBook and identifiers](https://bugs.launchpad.net/calibre/+bug/1498207)
This commit is contained in:
parent
86c17fdf92
commit
58a1365752
@ -193,7 +193,7 @@ class NoUID(BaseError):
|
|||||||
def __call__(self, container):
|
def __call__(self, container):
|
||||||
import uuid
|
import uuid
|
||||||
opf = container.opf
|
opf = container.opf
|
||||||
uid = str(uuid.uuid4())
|
uid = 'u' + str(uuid.uuid4())
|
||||||
opf.set('unique-identifier', uid)
|
opf.set('unique-identifier', uid)
|
||||||
m = container.opf_xpath('/opf:package/opf:metadata')
|
m = container.opf_xpath('/opf:package/opf:metadata')
|
||||||
if not m:
|
if not m:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user