Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lbesnard committed Oct 18, 2024
1 parent 6d2e27f commit 11f88e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion koreader_highlights_2_anki/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ def main():
)
parser.add_argument(
"--select-files",
"-s",
action="store_true",
help="If set, allows you to select files interactively for processing.",
)
Expand All @@ -551,7 +552,6 @@ def main():
os.makedirs(args.output_folder)
logger.info(f"Created output folder: {args.output_folder}")

nltk.download = lambda *args, **kwargs: None

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

# If --select-files is passed, present a list for the user to select files
if args.select_files:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 11f88e8

Please sign in to comment.