mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-15 15:44:26 -04:00
fix add command not updating snapshot detail index pages when passed index-only and overwrite flags together
This commit is contained in:
parent
8e98cef7ad
commit
b06e256ad9
1 changed files with 5 additions and 0 deletions
|
@ -585,6 +585,10 @@ def add(urls: Union[str, List[str]],
|
||||||
all_links = load_main_index(out_dir=out_dir)
|
all_links = load_main_index(out_dir=out_dir)
|
||||||
|
|
||||||
if index_only:
|
if index_only:
|
||||||
|
if overwrite:
|
||||||
|
archive_links(imported_links, overwrite=overwrite, methods=['index_only'], out_dir=out_dir)
|
||||||
|
else:
|
||||||
|
archive_links(new_links, overwrite=False, methods=['index_only'], out_dir=out_dir)
|
||||||
return all_links
|
return all_links
|
||||||
|
|
||||||
# Run the archive methods for each link
|
# Run the archive methods for each link
|
||||||
|
@ -593,6 +597,7 @@ def add(urls: Union[str, List[str]],
|
||||||
}
|
}
|
||||||
if extractors:
|
if extractors:
|
||||||
archive_kwargs["methods"] = extractors
|
archive_kwargs["methods"] = extractors
|
||||||
|
|
||||||
if update_all:
|
if update_all:
|
||||||
archive_links(all_links, overwrite=overwrite, **archive_kwargs)
|
archive_links(all_links, overwrite=overwrite, **archive_kwargs)
|
||||||
elif overwrite:
|
elif overwrite:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue