From f51d0a1c312b8c2312474ec5827b1802b097671c Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Thu, 9 Sep 2010 21:56:36 +0100 Subject: [PATCH] Remove print in gui.devices when books match but db_ids don't. --- src/calibre/gui2/device.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/calibre/gui2/device.py b/src/calibre/gui2/device.py index 98e6a5d9da..65a4b62cf2 100644 --- a/src/calibre/gui2/device.py +++ b/src/calibre/gui2/device.py @@ -1365,13 +1365,10 @@ class DeviceMixin(object): # {{{ if mi.authors and \ re.sub('(?u)\W|[_]', '', authors_to_string(mi.authors).lower()) \ in cache['authors']: - # We really shouldn't get here, because set_books_in_library - # should have set the db_ids for the books, and therefore - # the if just above should have found them. Mark the book - # anyway, and print a message about the situation + # If we get here, then two library books have the same title + # and author. This can happen, especially in the case of + # news. Mark a match and go on. loc[i] = True - prints('book_on_device: matched title/author but not db_id!', - mi.title, authors_to_string(mi.authors)) continue # Also check author sort, because it can be used as author in # some formats