From 642535fd8d92ad2e62c3c6aa688baa433f52b161 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Thu, 14 Jun 2012 19:06:10 -0500 Subject: [PATCH] Plugin - Add some title output lists in the jobs detail window. --- calibre-plugin/jobs.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/calibre-plugin/jobs.py b/calibre-plugin/jobs.py index 1a31315..6325dd7 100644 --- a/calibre-plugin/jobs.py +++ b/calibre-plugin/jobs.py @@ -87,7 +87,15 @@ def do_download_worker(book_list, options, print(job.details) if count >= total: - # All done! + # All done! Output some lists for convenience of some users. + print("Successfully downloaded:") + for book in book_list: + if book['good']: + print(book['title']) + print("\nUnsuccessful:") + for book in book_list: + if not book['good']: + print(book['title']) break server.close() @@ -117,10 +125,10 @@ def do_download_for_worker(book,options): story = adapter.getStoryMetadataOnly() if 'calibre_series' in book: - print("calibre_series:%s [%d]"%book['calibre_series']) + # print("calibre_series:%s [%d]"%book['calibre_series']) adapter.setSeries(book['calibre_series'][0],book['calibre_series'][1]) - else: - print("no calibre_series") + # else: + # print("no calibre_series") writer = writers.getWriter(options['fileform'],adapter.config,adapter) outfile = book['outfile']