mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
d6fe4bf8d3
commit
a4b4e854a1
@ -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 @@ class Adder(QObject):
|
||||
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 @@ class Adder(QObject):
|
||||
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…
x
Reference in New Issue
Block a user