mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
make index_only option skip archive updating
This commit is contained in:
parent
d2a51f68c0
commit
ce33a46866
1 changed files with 3 additions and 0 deletions
|
@ -328,6 +328,9 @@ def update_archive_data(import_path: Optional[str]=None,
|
||||||
# Step 2: Write updated index with deduped old and new links back to disk
|
# Step 2: Write updated index with deduped old and new links back to disk
|
||||||
write_main_index(links=list(all_links), out_dir=OUTPUT_DIR)
|
write_main_index(links=list(all_links), out_dir=OUTPUT_DIR)
|
||||||
|
|
||||||
|
if index_only:
|
||||||
|
return all_links
|
||||||
|
|
||||||
# Step 3: Run the archive methods for each link
|
# Step 3: Run the archive methods for each link
|
||||||
links = new_links if ONLY_NEW else all_links
|
links = new_links if ONLY_NEW else all_links
|
||||||
log_archiving_started(len(links), resume)
|
log_archiving_started(len(links), resume)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue