1
0
Fork 0
mirror of synced 2024-06-26 10:00:19 +12:00

Update archivebox/core/forms.py

Cleaner handling of the ARCHIVE_METHODS values

Co-authored-by: Nick Sweeting <git@sweeting.me>
This commit is contained in:
BlipRanger 2020-12-10 12:46:16 -05:00 committed by GitHub
parent 35809eab1c
commit 6f462b45d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,18 +10,11 @@ CHOICES = (
('1', 'depth = 1 (archive these URLs and all URLs one hop away)'),
)
from ..extractors import get_default_archive_methods
ARCHIVE_METHODS = [
('title', 'title'),
('favicon', 'favicon'),
('wget', 'wget'),
('warc', 'warc'),
('pdf', 'pdf'),
('screenshot', 'screenshot'),
('dom', 'dom'),
('singlefile', 'singlefile'),
('git', 'git'),
('media', 'media'),
('archive_org', 'archive_org'),
(name, name)
for name, _, _ in get_default_archive_methods()
]