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['title'] = unescape(link['title'])
|
||||||
link['latest'] = link.get('latest') or {}
|
link['latest'] = link.get('latest') or {}
|
||||||
|
|
||||||
|
latest = link['latest']
|
||||||
if not link['latest'].get('wget'):
|
if not link['latest'].get('wget'):
|
||||||
link['latest']['wget'] = wget_output_path(link)
|
link['latest']['wget'] = wget_output_path(link)
|
||||||
|
|
||||||
|
@ -72,6 +73,9 @@ def validate_links(links):
|
||||||
if not link['latest'].get('dom'):
|
if not link['latest'].get('dom'):
|
||||||
link['latest']['dom'] = None
|
link['latest']['dom'] = None
|
||||||
|
|
||||||
|
if not latest.get('favicon'):
|
||||||
|
latest['favicon'] = None
|
||||||
|
|
||||||
return list(links)
|
return list(links)
|
||||||
|
|
||||||
def new_links(all_links, existing_links):
|
def new_links(all_links, existing_links):
|
||||||
|
|
Loading…
Add table
Reference in a new issue