mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-16 08:04:26 -04:00
Update archivebox/core/views.py
Cleaner handling of the archive methods input Co-authored-by: Nick Sweeting <git@sweeting.me>
This commit is contained in:
parent
7ce1f63183
commit
35809eab1c
1 changed files with 1 additions and 3 deletions
|
@ -138,9 +138,7 @@ class AddView(UserPassesTestMixin, FormView):
|
|||
url = form.cleaned_data["url"]
|
||||
print(f'[+] Adding URL: {url}')
|
||||
depth = 0 if form.cleaned_data["depth"] == "0" else 1
|
||||
extractors = ""
|
||||
for extractor in form.cleaned_data["archiveMethods"]:
|
||||
extractors = extractors + extractor + ','
|
||||
extractors = ','.join(form.cleaned_data["archive_methods"])
|
||||
input_kwargs = {
|
||||
"urls": url,
|
||||
"depth": depth,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue