Commit Graph

3 Commits

Author SHA1 Message Date
Felipe Martin Garcia 02f8f05538
feat: cache support (#19)
- Added file and memory cache handlers
- Steam provider now uses a cache to store the app list for 24h

Closes #12
2022-01-30 19:25:16 +01:00
Felipe M 967a03d394
feat: improved logging with logrus
Propagated a logrus.Logger/Entry along for the processor, registry and
providers to use for events that may not require to stop processing but
are useful to know otherwise.

Changed some functions to return errors instead of failing with a logger
trying to centralice the logging or returning of the main failing points
in the main components of the application.

Closes #13
2022-01-27 18:31:04 +01:00
Felipe M c03232381c
refactor: working on new version
- Refactored all providers, all following the same interface
- Added the registry component where all providers get initializated
- Added the processor component in charge of processing
  screenshots/covers
- Split configuration into Options and ProviderOptions
- Refactored the workaround for the covers, now the game provide a
  CoverURL and the processor decides to download it or not
- Made the providers folder hierarchy more clear, and moved helper
  functions to other files for sanity
- Simplified CLI
2022-01-23 21:47:18 +01:00