From e98ed60d2d18d7d0f960745e1cf4938b9b963b8d Mon Sep 17 00:00:00 2001 From: davidfor Date: Fri, 18 Jan 2013 09:14:37 +1100 Subject: [PATCH] Bug #1100607: Update size when sending book to Kobo device - Incorrectly did check on on metadata management. Files size update and deleted row check needs to be done all the time. --- src/calibre/devices/kobo/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index 82b3373643..006e90e0ce 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -1711,7 +1711,7 @@ class KOBOTOUCH(KOBO): result = super(KOBOTOUCH, self).upload_books(files, names, on_card, end_session, metadata) # debug_print('KoboTouch:upload_books - result=', result) - if self.dbversion >= 53 and prefs['manage_device_metadata'] == 'on_connect': + if self.dbversion >= 53: import sqlite3 as sqlite try: with closing(sqlite.connect(self.normalize_path(self._main_prefix +