mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-14 18:44:24 +02: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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user