mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-27 16:33:12 +02:00
Fix incorrect return value that causes book matching to run very slowly
This commit is contained in:
parent
db30fcdcc0
commit
e3f9017e89
1 changed files with 2 additions and 2 deletions
|
|
@ -1553,12 +1553,12 @@ def _show_message(self, message):
|
|||
|
||||
def _check_if_format_send_needed(self, db, id_, book):
|
||||
if not self.will_ask_for_update_books:
|
||||
return None
|
||||
return (None, False)
|
||||
|
||||
from calibre.utils.date import parse_date, isoformat
|
||||
try:
|
||||
if not hasattr(book, '_format_mtime_'):
|
||||
return None
|
||||
return (None, False)
|
||||
|
||||
ext = posixpath.splitext(book.lpath)[1][1:]
|
||||
fmt_metadata = db.new_api.format_metadata(id_, ext)
|
||||
|
|
|
|||
Loading…
Reference in a new issue