mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Resolves bugs #4679 and 4687, improved diagnostics
This commit is contained in:
parent
76fbc5dc60
commit
29d6012760
@ -333,11 +333,12 @@ class EPUB_MOBI(CatalogPlugin):
|
|||||||
result = ''
|
result = ''
|
||||||
if hundredsComponent and not tensComponent:
|
if hundredsComponent and not tensComponent:
|
||||||
result = hundredsComponentString
|
result = hundredsComponentString
|
||||||
if not hundredsComponent and tensComponent:
|
elif not hundredsComponent and tensComponent:
|
||||||
result = tensComponentString
|
result = tensComponentString
|
||||||
if hundredsComponent and tensComponent:
|
elif hundredsComponent and tensComponent:
|
||||||
result = hundredsComponentString + " " + tensComponentString
|
result = hundredsComponentString + " " + tensComponentString
|
||||||
|
else:
|
||||||
|
prints(" NumberToText.stringFromInt(): empty result translating %d" % intToTranslate)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def numberTranslate(self):
|
def numberTranslate(self):
|
||||||
@ -928,7 +929,7 @@ class EPUB_MOBI(CatalogPlugin):
|
|||||||
unique_authors.append((current_author[0], current_author[1].title(),
|
unique_authors.append((current_author[0], current_author[1].title(),
|
||||||
books_by_current_author))
|
books_by_current_author))
|
||||||
|
|
||||||
if self.verbose:
|
if False and self.verbose:
|
||||||
self.opts.log.info("\nfetchBooksByauthor(): %d unique authors" % len(unique_authors))
|
self.opts.log.info("\nfetchBooksByauthor(): %d unique authors" % len(unique_authors))
|
||||||
for author in unique_authors:
|
for author in unique_authors:
|
||||||
self.opts.log.info((u" %-50s %-25s %2d" % (author[0][0:45], author[1][0:20],
|
self.opts.log.info((u" %-50s %-25s %2d" % (author[0][0:45], author[1][0:20],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user