View Single Post
Old 08-17-2011, 04:23 PM   #3
scruffy
Enthusiast
scruffy has a complete set of Star Wars action figures.scruffy has a complete set of Star Wars action figures.scruffy has a complete set of Star Wars action figures.scruffy has a complete set of Star Wars action figures.
 
Posts: 29
Karma: 324
Join Date: Mar 2008
Device: ebookwise, n800, tablet, etc
Not a python coder, but this is essentially what I mean:

Seems like a small change to /src/calibre/gui2/metadata/bulk_download.py

def start_download(gui, ids, callback):
d = ConfirmDialog(ids, gui)
ret = d.exec_()
d.b.clicked.disconnect()
if ret != d.Accepted:
return

[Add a loop to only add a Max of X (new variable setting?) each time and create ids/X jobs not just a single job of all ids...]
job = ThreadedJob('metadata bulk download',
_('Download metadata for %d books')%len(ids),
download, (ids, gui.current_db, d.identify, d.covers), {}, callback)
gui.job_manager.run_threaded_job(job)
[end loop]

gui.status_bar.show_message(_('Metadata download started'), 3000)
# }}}
scruffy is offline   Reply With Quote