From 3d84b27d5876e3be79a3233b9532cc7ff00f7d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Mon, 5 May 2014 18:32:46 +0200 Subject: [PATCH] Fixed tiny bugs --- kcc/KCC_gui.py | 2 +- kcc/dualmetafix.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py index 75d3aff..33c05a9 100644 --- a/kcc/KCC_gui.py +++ b/kcc/KCC_gui.py @@ -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: diff --git a/kcc/dualmetafix.py b/kcc/dualmetafix.py index b8c3d06..7678931 100644 --- a/kcc/dualmetafix.py +++ b/kcc/dualmetafix.py @@ -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