Skip to content

Commit 11f88e8

Browse files
committed
wip
1 parent 6d2e27f commit 11f88e8

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

koreader_highlights_2_anki/__main__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ def main():
541541
)
542542
parser.add_argument(
543543
"--select-files",
544+
"-s",
544545
action="store_true",
545546
help="If set, allows you to select files interactively for processing.",
546547
)
@@ -551,7 +552,6 @@ def main():
551552
os.makedirs(args.output_folder)
552553
logger.info(f"Created output folder: {args.output_folder}")
553554

554-
nltk.download = lambda *args, **kwargs: None
555555

556556
# Recursively find all metadata.epub.lua files in the input folder
557557
lua_files = []
@@ -564,6 +564,8 @@ def main():
564564
if not lua_files:
565565
logger.error("No metadata.*.lua files found in the input folder.")
566566
return
567+
else:
568+
nltk.download = lambda *args, **kwargs: None
567569

568570
# If --select-files is passed, present a list for the user to select files
569571
if args.select_files:
-86.4 KB
Loading
-104 KB
Loading

0 commit comments

Comments
 (0)