From 5e4a850a68c9a5ccda5c9ee3c735cd28054385ee Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 28 Feb 2025 09:03:20 +0530 Subject: [PATCH] string changes --- src/calibre/devices/kobo/kobotouch_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/devices/kobo/kobotouch_config.py b/src/calibre/devices/kobo/kobotouch_config.py index fdb340c7cf..9d5a0bc2bd 100644 --- a/src/calibre/devices/kobo/kobotouch_config.py +++ b/src/calibre/devices/kobo/kobotouch_config.py @@ -366,11 +366,11 @@ class BookUploadsGroupBox(DeviceOptionsGroupBox): tooltip=_( 'Enter a template to decide if an EPUB book is to be auto converted to KEPUB. ' 'If the template returns false or no result, the book will not be ' - 'converted to KEPUB. For example to only kepubify books that have the tag "as_kepub", use the template: {0}' - ' or to only convert books that do not have the tag as_epub, use the template: {1}' + 'converted to KEPUB. For example to only kepubify books that have the tag "{0}", use the template: {1}' + ' or to only convert books that do not have the tag "{2}", use the template: {3}' '\n\nIf no template is specified conversion to KEPUB is controlled only by the setting above to use the Kobo viewer. ' 'Note that the setting above must be enabled for the template to be checked.' - ).format(r'{tags:str_in_list(\,,as_kepub,true,false)}', r'{tags:str_in_list(\,,as_epub,false,true)}') + ).format('as_kepub', r'{tags:str_in_list(\,,as_kepub,true,false)}', 'as_epub', r'{tags:str_in_list(\,,as_epub,false,true)}') ) la.setBuddy(self.kepubify_template_edit)