mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-27 00:05:27 +02: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:
@@ -10,18 +10,11 @@ CHOICES = (
|
|||||||
('1', 'depth = 1 (archive these URLs and all URLs one hop away)'),
|
('1', 'depth = 1 (archive these URLs and all URLs one hop away)'),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
from ..extractors import get_default_archive_methods
|
||||||
|
|
||||||
ARCHIVE_METHODS = [
|
ARCHIVE_METHODS = [
|
||||||
('title', 'title'),
|
(name, name)
|
||||||
('favicon', 'favicon'),
|
for name, _, _ in get_default_archive_methods()
|
||||||
('wget', 'wget'),
|
|
||||||
('warc', 'warc'),
|
|
||||||
('pdf', 'pdf'),
|
|
||||||
('screenshot', 'screenshot'),
|
|
||||||
('dom', 'dom'),
|
|
||||||
('singlefile', 'singlefile'),
|
|
||||||
('git', 'git'),
|
|
||||||
('media', 'media'),
|
|
||||||
('archive_org', 'archive_org'),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user