1
0
Fork 0

Merge pull request #114 from karlicoss/fix-favicon

Add dummy favicon entry so FETCH_FAVICON='False' isn't failing
This commit is contained in:
Nick Sweeting 2018-11-26 16:23:22 -05:00 committed by GitHub
commit 1cbbf7204d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):