mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-06-02 15:49:51 -04:00
fix the add links form
This commit is contained in:
parent
215d5eae32
commit
ae208435c9
6 changed files with 10 additions and 8 deletions
|
@ -66,9 +66,9 @@ class AddLinks(View):
|
|||
if form.is_valid():
|
||||
url = form.cleaned_data["url"]
|
||||
print(f'[+] Adding URL: {url}')
|
||||
depth = 0 if form.cleaned_data["source"] == "url" else 1
|
||||
depth = 0 if form.cleaned_data["depth"] == "0" else 0
|
||||
input_kwargs = {
|
||||
"url": url,
|
||||
"urls": url,
|
||||
"depth": depth,
|
||||
"update_all": False,
|
||||
"out_dir": OUTPUT_DIR,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue