mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
tweak worker updated logic and add output_dir_template and symlinks logic
This commit is contained in:
parent
34e4b48557
commit
f6d22a3cc4
3 changed files with 98 additions and 35 deletions
|
@ -249,6 +249,12 @@ class SnapshotView(View):
|
|||
return HttpResponse(
|
||||
format_html(
|
||||
(
|
||||
'<html><head>'
|
||||
'<title>Snapshot Not Found</title>'
|
||||
#'<script>'
|
||||
#'setTimeout(() => { window.location.reload(); }, 5000);'
|
||||
#'</script>'
|
||||
'</head><body>'
|
||||
'<center><br/><br/><br/>'
|
||||
f'Snapshot <a href="/archive/{snapshot.timestamp}/index.html" target="_top"><b><code>[{snapshot.timestamp}]</code></b></a>: <a href="{snapshot.url}" target="_blank" rel="noreferrer">{snapshot.url}</a><br/>'
|
||||
f'was queued on {str(snapshot.bookmarked_at).split(".")[0]}, '
|
||||
|
@ -267,6 +273,7 @@ class SnapshotView(View):
|
|||
f'- go to the <a href="/admin/core/snapshot/?id__exact={snapshot.id}" target="_top">Snapshot actions</a> to re-archive<br/>'
|
||||
'- or return to <a href="/" target="_top">the main index...</a></div>'
|
||||
'</center>'
|
||||
'</body></html>'
|
||||
),
|
||||
archivefile if str(archivefile) != 'None' else '',
|
||||
f'the {archivefile} resource could not be fetched' if str(archivefile) != 'None' else 'the original site was not available',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue