diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index b3ebbcb..7aad21a 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -123,6 +123,9 @@ def buildOPF(profile, dstdir, title, filelist, cover=None, righttoleft=False): writingmode = "horizontal-rl" else: writingmode = "horizontal-lr" + from uuid import uuid4 + uuid = str(uuid4()) + uuid = uuid.encode('utf-8') f = open(opffile, "w") f.writelines(["\n", "\n", @@ -130,8 +133,7 @@ def buildOPF(profile, dstdir, title, filelist, cover=None, righttoleft=False): "xmlns:opf=\"http://www.idpf.org/2007/opf\">\n", "", title, "\n", "en-US\n", - "", - "015ffaec-9340-42f8-b163-a0c5ab7d0611\n", + "", uuid, "\n", "\n", "\n", "\n", @@ -139,8 +141,8 @@ def buildOPF(profile, dstdir, title, filelist, cover=None, righttoleft=False): "\n", "\n", "\n", - "\n", - "\n", + "\n", + "\n", "\n", "\n", "\n\n