From c9e0c2e658dccf43c005ee36f5daf95e6cf9bf00 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Fri, 19 Jul 2024 15:31:01 +0200 Subject: [PATCH] Distinguish between shine and vision in terms of cover size. --- src/calibre/devices/kobo/driver.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index 0a2131c639..3eeec567da 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -1565,11 +1565,16 @@ class KOBOTOUCH(KOBO): # Used for screensaver, home screen ' - N3_FULL.parsed': [(1264,1680), 0, 200,True,], } - TOLINO_COVER_FILE_ENDINGS = { + TOLINO_SHINE_COVER_FILE_ENDINGS = { # Used for ??? # There's probably only one ending used '': [(1072,1448), 0, 200,True,], } + TOLINO_VISION_COVER_FILE_ENDINGS = { + # Used for ??? + # There's probably only one ending used + '': [(1264,1680), 0, 200,True,], + } # Following are the sizes used with pre2.1.4 firmware # COVER_FILE_ENDINGS = { # ' - N3_LIBRARY_FULL.parsed':[(355,530),0, 99,], # Used for Details screen @@ -3710,15 +3715,15 @@ class KOBOTOUCH(KOBO): elif self.isSage(): _cover_file_endings = self.FORMA_COVER_FILE_ENDINGS elif self.isShine5(): - _cover_file_endings = self.TOLINO_COVER_FILE_ENDINGS + _cover_file_endings = self.TOLINO_SHINE_COVER_FILE_ENDINGS elif self.isShineColor(): - _cover_file_endings = self.TOLINO_COVER_FILE_ENDINGS + _cover_file_endings = self.TOLINO_SHINE_COVER_FILE_ENDINGS elif self.isTouch(): _cover_file_endings = self.LEGACY_COVER_FILE_ENDINGS elif self.isTouch2(): _cover_file_endings = self.LEGACY_COVER_FILE_ENDINGS elif self.isVisionColor(): - _cover_file_endings = self.TOLINO_COVER_FILE_ENDINGS + _cover_file_endings = self.TOLINO_VISION_COVER_FILE_ENDINGS else: _cover_file_endings = self.LEGACY_COVER_FILE_ENDINGS