mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 15:23:51 +02:00
...
This commit is contained in:
parent
d6fe4bf8d3
commit
a4b4e854a1
2 changed files with 1 additions and 3 deletions
|
|
@ -39,7 +39,7 @@ def get_metadata(stream):
|
|||
pass
|
||||
mi.timestamp = None
|
||||
return mi
|
||||
raise ValueError('No ebook found in ZIP archive')
|
||||
raise ValueError('No ebook found in ZIP archive (%s)' % os.path.basename(getattr(stream, 'name', '') or '<stream>'))
|
||||
|
||||
|
||||
def zip_opf_metadata(opfpath, zf):
|
||||
|
|
|
|||
|
|
@ -66,7 +66,6 @@ def __init__(self, source, single_book_per_directory=True, db=None, parent=None,
|
|||
self.callback = callback
|
||||
self.add_formats_to_existing = prefs['add_formats_to_existing']
|
||||
self.do_one_signal.connect(self.tick, type=Qt.QueuedConnection)
|
||||
self.tdir = PersistentTemporaryDirectory('_add_books')
|
||||
self.pool = pool
|
||||
self.pd = ProgressDialog(_('Adding books...'), _('Scanning for files...'), min=0, max=0, parent=parent, icon='add_book.png')
|
||||
self.db = getattr(db, 'new_api', None)
|
||||
|
|
@ -97,7 +96,6 @@ def break_cycles(self):
|
|||
self.abort_scan = True
|
||||
self.pd.close()
|
||||
self.pd.deleteLater()
|
||||
shutil.rmtree(self.tdir, ignore_errors=True)
|
||||
if self.pool is not None:
|
||||
self.pool.shutdown()
|
||||
if not self.items:
|
||||
|
|
|
|||
Loading…
Reference in a new issue