mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-26 06:00:22 +00: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)
|
||||
|
||||
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
|
||||
|
||||
# Run the archive methods for each link
|
||||
|
@ -593,6 +597,7 @@ def add(urls: Union[str, List[str]],
|
|||
}
|
||||
if extractors:
|
||||
archive_kwargs["methods"] = extractors
|
||||
|
||||
if update_all:
|
||||
archive_links(all_links, overwrite=overwrite, **archive_kwargs)
|
||||
elif overwrite:
|
||||
|
|
Loading…
Reference in a new issue