From 18bd4f4703364439339c71348defe5093b04c3f6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 22 Feb 2025 16:25:05 +0530 Subject: [PATCH] Forgot to pass in extra_css --- src/calibre/devices/kobo/driver.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index d18eaa5d15..80fea9a3db 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -2333,10 +2333,11 @@ class KOBOTOUCH(KOBO): def _kepubify(self, path, name, mi, extra_css) -> None: from calibre.ebooks.oeb.polish.errors import DRMError - from calibre.ebooks.oeb.polish.kepubify import kepubify_path + from calibre.ebooks.oeb.polish.kepubify import kepubify_path, make_options debug_print(f'Starting conversion of {mi.title} ({name}) to kepub') + opts = make_options(extra_css=extra_css or '') try: - kepubify_path(path, outpath=path, allow_overwrite=True) + kepubify_path(path, outpath=path, opts=opts, allow_overwrite=True) except DRMError: debug_print(f'Not converting {mi.title} ({name}) to KEPUB as it is DRMed') else: