1
0
mirror of https://github.com/ciromattia/kcc synced 2026-01-30 08:57:40 +00:00

Fixed tiny bugs

This commit is contained in:
Paweł Jastrzębski
2014-05-05 18:32:46 +02:00
parent e98a23d0c0
commit 3d84b27d58
2 changed files with 2 additions and 2 deletions

View File

@@ -506,7 +506,7 @@ class WorkerThread(QtCore.QThread):
self.pool.waitForDone()
sleep(0.5)
for success in self.workerOutput:
if not success:
if not success[0]:
self.errors = True
break
if not self.errors:

View File

@@ -140,7 +140,7 @@ class DualMobiMetaFix:
self.datain = open(infile, 'rb').read()
self.datain_rec0 = readsection(self.datain, 0)
# noinspection PyArgumentList
self.asin = bytes(uuid4(), 'UTF-8')
self.asin = bytes(str(uuid4()), 'UTF-8')
# in the first mobi header
# add 501 to "EBOK", add 113 as asin, add 504 as asin