mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
fix: Move csv split to the add function to avoid optional nullable argument
This commit is contained in:
parent
1ec8276514
commit
54df0a035b
2 changed files with 3 additions and 5 deletions
|
@ -526,13 +526,12 @@ def add(urls: Union[str, List[str]],
|
|||
overwrite: bool=False,
|
||||
init: bool=False,
|
||||
out_dir: Path=OUTPUT_DIR,
|
||||
extractors: list=None) -> List[Link]:
|
||||
extractors: str="") -> List[Link]:
|
||||
"""Add a new URL or list of URLs to your archive"""
|
||||
|
||||
assert depth in (0, 1), 'Depth must be 0 or 1 (depth >1 is not supported yet)'
|
||||
|
||||
if extractors is None:
|
||||
extractors = []
|
||||
extractors = extractors.split(",") if extractors else []
|
||||
|
||||
if init:
|
||||
run_subcommand('init', stdin=None, pwd=out_dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue