From 4669ca7d8bf68e0ca88ae61349fce2b28f4369f2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 14 Dec 2021 20:43:40 +0530 Subject: [PATCH] EPUB/MOBI Catalogs: Increase the maximum thumbnail size to 3 inches from 2 inches --- src/calibre/gui2/catalog/catalog_epub_mobi.ui | 4 ++-- src/calibre/library/catalogs/epub_mobi.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/calibre/gui2/catalog/catalog_epub_mobi.ui b/src/calibre/gui2/catalog/catalog_epub_mobi.ui index 4dff426ee6..8a180d7bfb 100644 --- a/src/calibre/gui2/catalog/catalog_epub_mobi.ui +++ b/src/calibre/gui2/catalog/catalog_epub_mobi.ui @@ -726,7 +726,7 @@ The default pattern \[.+\]|\+ excludes tags of the form [tag], e.g., [Test book] 1.000000000000000 - 5.000000000000000 + 3.000000000000000 0.100000000000000 @@ -771,7 +771,7 @@ The default pattern \[.+\]|\+ excludes tags of the form [tag], e.g., [Test book] - + diff --git a/src/calibre/library/catalogs/epub_mobi.py b/src/calibre/library/catalogs/epub_mobi.py index ea94a41227..030f5163fc 100644 --- a/src/calibre/library/catalogs/epub_mobi.py +++ b/src/calibre/library/catalogs/epub_mobi.py @@ -33,7 +33,7 @@ class EPUB_MOBI(CatalogPlugin): file_types = {'azw3', 'epub', 'mobi'} THUMB_SMALLEST = "1.0" - THUMB_LARGEST = "2.0" + THUMB_LARGEST = "3.0" cli_options = [Option('--catalog-title', # {{{ default='My Books', @@ -349,7 +349,7 @@ class EPUB_MOBI(CatalogPlugin): log.warning("coercing thumb_width from '%s' to '%s'" % (opts.thumb_width, self.THUMB_LARGEST)) opts.thumb_width = self.THUMB_LARGEST opts.thumb_width = "%.2f" % float(opts.thumb_width) - except: + except Exception: log.error("coercing thumb_width from '%s' to '%s'" % (opts.thumb_width, self.THUMB_SMALLEST)) opts.thumb_width = "1.0"