mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-24 15:13:03 +02:00
feat: Add singlefile to latest outputs
This commit is contained in:
@@ -365,6 +365,7 @@ class Link:
|
|||||||
'screenshot.png',
|
'screenshot.png',
|
||||||
'output.html',
|
'output.html',
|
||||||
'media',
|
'media',
|
||||||
|
'single-file.html'
|
||||||
)
|
)
|
||||||
|
|
||||||
return any(
|
return any(
|
||||||
@@ -376,7 +377,7 @@ class Link:
|
|||||||
"""get the latest output that each archive method produced for link"""
|
"""get the latest output that each archive method produced for link"""
|
||||||
|
|
||||||
ARCHIVE_METHODS = (
|
ARCHIVE_METHODS = (
|
||||||
'title', 'favicon', 'wget', 'warc', 'pdf',
|
'title', 'favicon', 'wget', 'warc', 'singlefile', 'pdf',
|
||||||
'screenshot', 'dom', 'git', 'media', 'archive_org',
|
'screenshot', 'dom', 'git', 'media', 'archive_org',
|
||||||
)
|
)
|
||||||
latest: Dict[str, ArchiveOutput] = {}
|
latest: Dict[str, ArchiveOutput] = {}
|
||||||
@@ -392,7 +393,6 @@ class Link:
|
|||||||
latest[archive_method] = history[0].output
|
latest[archive_method] = history[0].output
|
||||||
else:
|
else:
|
||||||
latest[archive_method] = None
|
latest[archive_method] = None
|
||||||
|
|
||||||
return latest
|
return latest
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user