ZeeZide / SwiftPMCatalog

Metadata driving the SwiftPM Catalog application
https://zeezide.com/en/products/swiftpmcatalog/
MIT License
64 stars 7 forks source link

Improve repository icon detection #8

Closed helje5 closed 4 years ago

helje5 commented 4 years ago

Repository icons are mapped manually in the catalog-info.json, would be nice to retrieve them somehow, e.g. fallback to the GitHub organization/user icon.

Maybe we could use the GitHub API for this, though that seems to have too tight constraints for apps (60 requests per hour?).

helje5 commented 4 years ago

I've added support for a set of fallback images based on the GitHub orgs. Seems to work well enough.