mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix kepubify template result not being used
This commit is contained in:
parent
7f4487d318
commit
26f5dd45b2
@ -2310,13 +2310,16 @@ class KOBOTOUCH(KOBO):
|
|||||||
return True
|
return True
|
||||||
from calibre.ebooks.metadata.book.formatter import SafeFormat
|
from calibre.ebooks.metadata.book.formatter import SafeFormat
|
||||||
kepubify = SafeFormat().safe_format(template, mi, 'Open With template error', mi)
|
kepubify = SafeFormat().safe_format(template, mi, 'Open With template error', mi)
|
||||||
debug_print(f'kepubify_template_result for {mi.title}:', kepubify)
|
debug_print(f'kepubify_template_result for {mi.title}:', repr(kepubify))
|
||||||
if kepubify is not None and kepubify.startswith('PLUGBOARD TEMPLATE ERROR'):
|
if kepubify is not None and kepubify.startswith('PLUGBOARD TEMPLATE ERROR'):
|
||||||
import sys
|
import sys
|
||||||
print(f'kepubify template: {template} returned error', file=sys.stderr)
|
print(f'kepubify template: {template} returned error', file=sys.stderr)
|
||||||
kepubifiable.add(mi.uuid)
|
kepubifiable.add(mi.uuid)
|
||||||
return True
|
return True
|
||||||
return kepubify and kepubify != 'false'
|
if kepubify and kepubify != 'false':
|
||||||
|
kepubifiable.add(mi.uuid)
|
||||||
|
return True
|
||||||
|
return False
|
||||||
return modify_css
|
return modify_css
|
||||||
|
|
||||||
self.extra_css, self.extra_sheet = self.get_extra_css()
|
self.extra_css, self.extra_sheet = self.get_extra_css()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user