fix: Add condition to avoid breaking the add command

This commit is contained in:
Cristian 2020-07-29 11:53:49 -05:00
parent c073ea141d
commit 3afb2401bc
2 changed files with 7 additions and 4 deletions

View file

@ -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