mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-03-30 11:52:23 +10:00
fetch page title during archiving process
This commit is contained in:
@@ -57,7 +57,7 @@ def validate_links(links):
|
||||
raise SystemExit(1)
|
||||
|
||||
for link in links:
|
||||
link['title'] = unescape(link['title'])
|
||||
link['title'] = unescape(link['title']) if link['title'] else None
|
||||
link['latest'] = link.get('latest') or {}
|
||||
|
||||
latest = link['latest']
|
||||
@@ -76,6 +76,9 @@ def validate_links(links):
|
||||
if not latest.get('favicon'):
|
||||
latest['favicon'] = None
|
||||
|
||||
if not link['latest'].get('title'):
|
||||
link['latest']['title'] = link['title']
|
||||
|
||||
return list(links)
|
||||
|
||||
def new_links(all_links, existing_links):
|
||||
|
||||
Reference in New Issue
Block a user