Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FAVICON_PROVIDER option for custom favicon service #1146

Merged
merged 1 commit into from
May 6, 2023

Conversation

mrled
Copy link
Contributor

@mrled mrled commented May 6, 2023

Summary

Add FAVICON_PROVIDER option to allow configuring any favicon service.

Tested with The Favicon Finder (a demo deployment of mat/besticon mentioned in the related issue), and also with Favicon Kit.

e.g.

archivebox config --set FAVICON_PROVIDER='https://besticon-demo.herokuapp.com/icon?url={}&size=32..64..64'

Questions

I noticed that the Google URL was hard-coded in two places: archivebox/extractors/favicon.py and archivebox/index/schema.py. I made changes in both, but I'm not sure if I should have done the latter -- the top of that file says not to add any more features to the file. Is it better to leave it as is, with the old hard-coded Google URL, or change it?

Related issues

#1117

Changes these areas

  • Bugfixes
  • Feature behavior
  • Command line interface
  • Configuration options
  • Internal architecture
  • Snapshot data layout on disk

@pirate
Copy link
Member

pirate commented May 6, 2023

This is perfect, thanks! the change to schema.py is ok, I think the new behavior is expected in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants