From 2e466f735e264f30135b00f5eaa2e5db80120463 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 23 Dec 2016 11:29:04 +1100 Subject: [PATCH] Fix cover file size determination in KoboTouch driver Fix a couple of typos related to getting the sizes of the covers for Kobo devices. It meant that everything got the size for the Glo. The other was the dimensions of the full size cover for the Aura ONE were swapped. --- src/calibre/devices/kobo/driver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index fe714ac85d..63216b4a39 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -1409,7 +1409,7 @@ class KOBOTOUCH(KOBO): } AURA_ONE_COVER_FILE_ENDINGS = { # Used for screensaver, home screen - ' - N3_FULL.parsed': [(1872,1404), 0, 200,True,], # Used for screensaver, home screen + ' - N3_FULL.parsed': [(1404,1872), 0, 200,True,], # Used for screensaver, home screen # Used for Details screen before FW2.8.1, then for current book tile on home screen ' - N3_LIBRARY_FULL.parsed':[(355, 473), 0, 200,False,], # Used for library lists @@ -2914,7 +2914,7 @@ class KOBOTOUCH(KOBO): return self.detected_device.idProduct in self.TOUCH2_PRODUCT_ID def cover_file_endings(self): - return self.GLO_COVER_FILE_ENDINGS if self.isGlo() or self.isAura() or self.isAuraEdition2 \ + return self.GLO_COVER_FILE_ENDINGS if self.isGlo() or self.isAura() or self.isAuraEdition2() \ else self.AURA_HD_COVER_FILE_ENDINGS if self.isAuraHD() or self.isAuraH2O() or self.isGloHD() \ else self.AURA_ONE_COVER_FILE_ENDINGS if self.isAuraOne() \ else self.COVER_FILE_ENDINGS