mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-04 23:07:56 +10:00
continue renaming extractor to plugin, add plan for hook concurrency, add chrome kill helper script
This commit is contained in:
@@ -25,7 +25,7 @@ import rich_click as click
|
||||
|
||||
|
||||
# Extractor metadata
|
||||
EXTRACTOR_NAME = 'index_sqlite'
|
||||
PLUGIN_NAME = 'index_sqlite'
|
||||
OUTPUT_DIR = '.'
|
||||
|
||||
# Text file patterns to index, in priority order
|
||||
@@ -74,14 +74,14 @@ def find_indexable_content() -> list[tuple[str, str]]:
|
||||
cwd = Path.cwd()
|
||||
|
||||
for extractor, file_pattern in INDEXABLE_FILES:
|
||||
extractor_dir = cwd / extractor
|
||||
if not extractor_dir.exists():
|
||||
plugin_dir = cwd / extractor
|
||||
if not plugin_dir.exists():
|
||||
continue
|
||||
|
||||
if '*' in file_pattern:
|
||||
matches = list(extractor_dir.glob(file_pattern))
|
||||
matches = list(plugin_dir.glob(file_pattern))
|
||||
else:
|
||||
match = extractor_dir / file_pattern
|
||||
match = plugin_dir / file_pattern
|
||||
matches = [match] if match.exists() else []
|
||||
|
||||
for match in matches:
|
||||
|
||||
Reference in New Issue
Block a user