From 6c1a08ee119feb8ee1c7d5df0fe2eafe8ef6a0d1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 28 Feb 2025 22:29:35 +0530 Subject: [PATCH] kepubify template result: allow 0 and no as synonyms for false --- src/calibre/devices/kobo/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index cd8d3510f1..39524738b3 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -2316,7 +2316,7 @@ class KOBOTOUCH(KOBO): print(f'kepubify template: {template} returned error', file=sys.stderr) kepubifiable.add(mi.uuid) return True - if kepubify and kepubify != 'false': + if kepubify and kepubify.lower() not in ('false', '0', 'no'): kepubifiable.add(mi.uuid) return True return False