diff --git a/.github/README.md b/.github/README.md index bf5705af..36e63132 100644 --- a/.github/README.md +++ b/.github/README.md @@ -97,7 +97,7 @@ To stop playing press Ctrl+C in either the terminal or mpv
List all subcommands $ library - library (v2.8.069; 80 subcommands) + library (v2.8.070; 80 subcommands) Create database subcommands: ╭───────────────┬──────────────────────────────────────────╮ diff --git a/xklb/__init__.py b/xklb/__init__.py index 3cb9f2b3..b8c7898c 100644 --- a/xklb/__init__.py +++ b/xklb/__init__.py @@ -1 +1 @@ -__version__ = "2.8.069" +__version__ = "2.8.070" diff --git a/xklb/files/llm_map.py b/xklb/files/llm_map.py index f384e44e..a624e667 100644 --- a/xklb/files/llm_map.py +++ b/xklb/files/llm_map.py @@ -96,7 +96,8 @@ def llm_map(): if file_contents: file_contents = file_contents.get("tags") if file_contents: - prompt += "\n" + f"File contents: {file_contents[:args.text].replace(';', '\n')}" + "\n" + extract = file_contents[: args.text].replace(";", "\n") + prompt += "\n" + "File contents: " + extract + "\n" output = run_llama_with_prompt(args, prompt) if output is not None: diff --git a/xklb/text/extract_text.py b/xklb/text/extract_text.py index f4252dba..ae201c5a 100644 --- a/xklb/text/extract_text.py +++ b/xklb/text/extract_text.py @@ -56,7 +56,7 @@ def parse_text(args, html_content): def get_text(args, url): is_error = False - if not url.startswith("http") and Path(url).is_file(): + if not args.local_html and not url.startswith("http") and Path(url).is_file(): text = fs_add.munge_book_tags_fast(url) if text: yield text.get("tags").replace(";", "\n")