mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-18 06:18:25 +00:00
fix title showing up as None in some UI spots
This commit is contained in:
parent
eff0100971
commit
935dcac0c7
2 changed files with 2 additions and 0 deletions
|
@ -143,6 +143,7 @@ def write_html_link_index(out_dir, link):
|
||||||
f.write(Template(link_html).substitute({
|
f.write(Template(link_html).substitute({
|
||||||
**link,
|
**link,
|
||||||
**link['latest'],
|
**link['latest'],
|
||||||
|
'title': link['title'] or link['url'],
|
||||||
'type': link['type'] or 'website',
|
'type': link['type'] or 'website',
|
||||||
'tags': link['tags'] or 'untagged',
|
'tags': link['tags'] or 'untagged',
|
||||||
'bookmarked': datetime.fromtimestamp(float(link['timestamp'])).strftime('%Y-%m-%d %H:%M'),
|
'bookmarked': datetime.fromtimestamp(float(link['timestamp'])).strftime('%Y-%m-%d %H:%M'),
|
||||||
|
|
|
@ -526,6 +526,7 @@ def derived_link_info(link):
|
||||||
'screenshot_link': 'archive/{timestamp}/screenshot.png'.format(**link),
|
'screenshot_link': 'archive/{timestamp}/screenshot.png'.format(**link),
|
||||||
'dom_link': 'archive/{timestamp}/output.html'.format(**link),
|
'dom_link': 'archive/{timestamp}/output.html'.format(**link),
|
||||||
'archive_org_url': 'https://web.archive.org/web/{base_url}'.format(**link),
|
'archive_org_url': 'https://web.archive.org/web/{base_url}'.format(**link),
|
||||||
|
'title': link['title'] or link['url'],
|
||||||
}
|
}
|
||||||
|
|
||||||
# PDF and images are handled slightly differently
|
# PDF and images are handled slightly differently
|
||||||
|
|
Loading…
Add table
Reference in a new issue