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
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -2316,7 +2316,7 @@ class KOBOTOUCH(KOBO):
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
if kepubify and kepubify != 'false': if kepubify and kepubify.lower() not in ('false', '0', 'no'):
kepubifiable.add(mi.uuid) kepubifiable.add(mi.uuid)
return True return True
return False return False