From 07194ca5afe671c6094b4ca7bdb0d0c13ae992b6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 17 Apr 2024 21:05:05 +0530 Subject: [PATCH] Use Libra H2O cover settings for 2024 devices We dont have a way to distinguish between the different 2024 devices. So use the highest resolution on the theory that downscaling is better. --- src/calibre/devices/kobo/driver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index 17744f1cab..bc440fb9d1 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -3604,7 +3604,9 @@ class KOBOTOUCH(KOBO): return self.detected_device.idProduct in self.TOUCH2_PRODUCT_ID def cover_file_endings(self): - if self.isAura(): + if self.is2024Device(): + _cover_file_endings = self.LIBRA_H2O_COVER_FILE_ENDINGS + elif self.isAura(): _cover_file_endings = self.AURA_COVER_FILE_ENDINGS elif self.isAuraEdition2(): _cover_file_endings = self.GLO_COVER_FILE_ENDINGS