From 29d6012760bab50fb19b0d31162c507c13284037 Mon Sep 17 00:00:00 2001 From: GRiker Date: Tue, 26 Jan 2010 05:06:50 -0700 Subject: [PATCH] Resolves bugs #4679 and 4687, improved diagnostics --- src/calibre/library/catalog.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/calibre/library/catalog.py b/src/calibre/library/catalog.py index af17c2f890..d6b5f985f7 100644 --- a/src/calibre/library/catalog.py +++ b/src/calibre/library/catalog.py @@ -333,11 +333,12 @@ class EPUB_MOBI(CatalogPlugin): result = '' if hundredsComponent and not tensComponent: result = hundredsComponentString - if not hundredsComponent and tensComponent: + elif not hundredsComponent and tensComponent: result = tensComponentString - if hundredsComponent and tensComponent: + elif hundredsComponent and tensComponent: result = hundredsComponentString + " " + tensComponentString - + else: + prints(" NumberToText.stringFromInt(): empty result translating %d" % intToTranslate) return result def numberTranslate(self): @@ -928,7 +929,7 @@ class EPUB_MOBI(CatalogPlugin): unique_authors.append((current_author[0], current_author[1].title(), books_by_current_author)) - if self.verbose: + if False and self.verbose: self.opts.log.info("\nfetchBooksByauthor(): %d unique authors" % len(unique_authors)) for author in unique_authors: self.opts.log.info((u" %-50s %-25s %2d" % (author[0][0:45], author[1][0:20],