From 75abe74e20b3835ee3e47a2c37ba65d8da8a3221 Mon Sep 17 00:00:00 2001 From: David Forrester Date: Thu, 12 Dec 2013 22:07:56 +1100 Subject: [PATCH] Add new cover image type for Kobo driver Kobo driver: Fix book covers not showing for sideloaded kepubs on the book details screen, with newer Kobo firmware. Fixes #1260279 [Add new cover image type for Kobo driver](https://bugs.launchpad.net/calibre/+bug/1260279) As reported http://www.mobileread.com/forums/showthread.php?t=228973, the recent Kobo drivers have added new cover image type. This has been on the Touch for a while, but only now seems to be being generated for the newer ereaders. --- 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 a917cf7ad4..9b3ba3e6dd 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -1382,13 +1382,13 @@ class KOBOTOUCH(KOBO): ' - N3_FULL.parsed':[(758,1024),0, 99,True,], # Used for screensaver, home screen ' - N3_LIBRARY_FULL.parsed':[(355,479),0, 99,False,], # Used for Details screen ' - N3_LIBRARY_GRID.parsed':[(149,201),0, 99,False,], # Used for library lists -# ' - N3_LIBRARY_LIST.parsed':[(60,90),0, 53,], -# ' - N3_LIBRARY_SHELF.parsed': [(40,60),0, 52,], + ' - AndroidBookLoadTablet_Aspect.parsed':[(355,479), 88, 99,False,], # In some cases this is used for Details screen } AURA_HD_COVER_FILE_ENDINGS = { ' - N3_FULL.parsed': [(1080,1440), 0, 99,True,], # Used for screensaver, home screen ' - N3_LIBRARY_FULL.parsed':[(355, 471), 0, 99,False,], # Used for Details screen ' - N3_LIBRARY_GRID.parsed':[(149, 198), 0, 99,False,], # Used for library lists + ' - AndroidBookLoadTablet_Aspect.parsed':[(355, 471), 88, 99,False,], # In some cases this is used for Details screen } # Following are the sizes used with pre2.1.4 firmware # COVER_FILE_ENDINGS = {