Dont kepubify when sending to Tolino devices

This commit is contained in:
Kovid Goyal 2025-02-28 16:04:45 +05:30
parent dab4137d53
commit ed866257df
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 2 deletions

View File

@ -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))

View File

@ -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:'))