kepubify template result: allow 0 and no as synonyms for false

This commit is contained in:
Kovid Goyal
2025-02-28 22:29:35 +05:30
parent 26f5dd45b2
commit 6c1a08ee11
+1 -1
View File
@@ -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