mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
fix: Add condition to avoid breaking the add
command
This commit is contained in:
parent
c073ea141d
commit
3afb2401bc
2 changed files with 7 additions and 4 deletions
|
@ -498,7 +498,7 @@ def status(out_dir: str=OUTPUT_DIR) -> None:
|
|||
def oneshot(url: str, out_dir: str=OUTPUT_DIR):
|
||||
oneshot_links, _ = parse_links_memory([url])
|
||||
oneshot_links, _ = dedupe_links([], oneshot_links)
|
||||
archive_links(oneshot_links, out_dir=out_dir, skip_index=True)
|
||||
archive_links(oneshot_links, out_dir=out_dir, skip_index=True, oneshot=True)
|
||||
return oneshot_links
|
||||
|
||||
@enforce_types
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue