mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 06:34:16 +00:00
Merge pull request #114 from karlicoss/fix-favicon
Add dummy favicon entry so FETCH_FAVICON='False' isn't failing
This commit is contained in:
commit
1cbbf7204d
1 changed files with 4 additions and 0 deletions
|
@ -60,6 +60,7 @@ def validate_links(links):
|
|||
link['title'] = unescape(link['title'])
|
||||
link['latest'] = link.get('latest') or {}
|
||||
|
||||
latest = link['latest']
|
||||
if not link['latest'].get('wget'):
|
||||
link['latest']['wget'] = wget_output_path(link)
|
||||
|
||||
|
@ -72,6 +73,9 @@ def validate_links(links):
|
|||
if not link['latest'].get('dom'):
|
||||
link['latest']['dom'] = None
|
||||
|
||||
if not latest.get('favicon'):
|
||||
latest['favicon'] = None
|
||||
|
||||
return list(links)
|
||||
|
||||
def new_links(all_links, existing_links):
|
||||
|
|
Loading…
Reference in a new issue