add form parser option

This commit is contained in:
Nick Sweeting 2021-04-01 02:34:16 -04:00
parent 59d5423483
commit 5d7ad9b1b4
2 changed files with 10 additions and 2 deletions

View file

@ -263,6 +263,7 @@ class AddView(UserPassesTestMixin, FormView):
def form_valid(self, form):
url = form.cleaned_data["url"]
print(f'[+] Adding URL: {url}')
parser = form.cleaned_data["parser"]
tag = form.cleaned_data["tag"]
depth = 0 if form.cleaned_data["depth"] == "0" else 1
extractors = ','.join(form.cleaned_data["archive_methods"])
@ -270,6 +271,7 @@ class AddView(UserPassesTestMixin, FormView):
"urls": url,
"tag": tag,
"depth": depth,
"parser": parser,
"update_all": False,
"out_dir": OUTPUT_DIR,
}