From ed866257df1357b7a48f5adabfdcfd312b697897 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 28 Feb 2025 16:04:45 +0530 Subject: [PATCH] Dont kepubify when sending to Tolino devices --- src/calibre/devices/kobo/driver.py | 2 +- src/calibre/devices/kobo/kobotouch_config.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index 9ac76ed485..f20dfb24d9 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -2294,7 +2294,7 @@ class KOBOTOUCH(KOBO): debug_print(f'KoboTouch:upload_books - {len(files)} books') debug_print('KoboTouch:upload_books - files=', files) - do_kepubify = self.get_pref('kepubify') + do_kepubify = self.get_pref('kepubify') and not self.isTolinoDevice() template = self.get_pref('template_for_kepubify') modify_css = self.modifying_epub() entries = tuple(zip(files, names, metadata)) diff --git a/src/calibre/devices/kobo/kobotouch_config.py b/src/calibre/devices/kobo/kobotouch_config.py index 15d2791e5c..353b14fb8a 100644 --- a/src/calibre/devices/kobo/kobotouch_config.py +++ b/src/calibre/devices/kobo/kobotouch_config.py @@ -357,7 +357,9 @@ class BookUploadsGroupBox(DeviceOptionsGroupBox): 'Kobo devices have two viewer programs for EPUB files on their devices. An older one from Adobe and' ' the Kobo one. The Kobo one has much better performance and features and so, by default,' ' calibre will auto-convert EPUB books to the Kobo KEPUB format so that they are viewed by' - ' the Kobo viewer. If you would rather use the legacy viewer for EPUB, disable this option.' + ' the Kobo viewer. If you would rather use the legacy viewer for EPUB, disable this option. Note' + ' that this option has no effect if the device does not support KEPUB, such as for Tolino devices' + ' that also use this driver.' ), device.get_pref('kepubify')) self.template_la = la = QLabel('\xa0\xa0' + _('Template to decide conversion:'))