mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
bc0cec05fa
commit
268b2e1725
@ -31,10 +31,10 @@ class GenerateCatalogAction(InterfaceAction):
|
|||||||
_('No books selected for catalog generation'),
|
_('No books selected for catalog generation'),
|
||||||
show=True)
|
show=True)
|
||||||
|
|
||||||
db = self.gui.library_view.model().db
|
db = self.gui.library_view.model().db
|
||||||
dbspec = {}
|
dbspec = {}
|
||||||
for id in ids:
|
for id in ids:
|
||||||
dbspec[id] = {'ondevice': db.ondevice(id, index_is_id=True)}
|
dbspec[id] = {'ondevice': db.ondevice(id, index_is_id=True)}
|
||||||
|
|
||||||
# Calling gui2.tools:generate_catalog()
|
# Calling gui2.tools:generate_catalog()
|
||||||
ret = generate_catalog(self.gui, dbspec, ids, self.gui.device_manager,
|
ret = generate_catalog(self.gui, dbspec, ids, self.gui.device_manager,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user