mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Print progress when syncing
This commit is contained in:
@@ -12,7 +12,7 @@ The goal is that you do not have to leave your Steam library to launch games fro
|
|||||||
- [x] [Itch.io](https://itch.io/app) integration
|
- [x] [Itch.io](https://itch.io/app) integration
|
||||||
- [x] [Origin](https://www.origin.com) integration (currently only windows, linux comming soon)
|
- [x] [Origin](https://www.origin.com) integration (currently only windows, linux comming soon)
|
||||||
- [x] Cross Platform
|
- [x] Cross Platform
|
||||||
- [x] Small (~1.5mb on disk), lightweight (~2mb ram) and fast(~1s sync)
|
- [x] Small (~1.5mb on disk), lightweight (~2mb ram) and fast(~30ms sync)
|
||||||
- [x] UI For configuration
|
- [x] UI For configuration
|
||||||
- [ ] GOG integration
|
- [ ] GOG integration
|
||||||
- [ ] UPlay integration
|
- [ ] UPlay integration
|
||||||
|
|||||||
+10
@@ -193,6 +193,8 @@ async fn run_sync(settings: &Settings) -> Result<(), Box<dyn Error>> {
|
|||||||
let userinfo_shortcuts = get_shortcuts_paths(&settings.steam)?;
|
let userinfo_shortcuts = get_shortcuts_paths(&settings.steam)?;
|
||||||
println!("Found {} user(s)", userinfo_shortcuts.len());
|
println!("Found {} user(s)", userinfo_shortcuts.len());
|
||||||
for user in userinfo_shortcuts.iter() {
|
for user in userinfo_shortcuts.iter() {
|
||||||
|
let start_time = std::time::Instant::now();
|
||||||
|
|
||||||
let shortcut_info = get_shortcuts_for_user(user);
|
let shortcut_info = get_shortcuts_for_user(user);
|
||||||
|
|
||||||
let mut new_user_shortcuts: Vec<ShortcutOwned> = shortcut_info.shortcuts;
|
let mut new_user_shortcuts: Vec<ShortcutOwned> = shortcut_info.shortcuts;
|
||||||
@@ -223,9 +225,15 @@ async fn run_sync(settings: &Settings) -> Result<(), Box<dyn Error>> {
|
|||||||
|
|
||||||
save_shortcuts(&shortcuts, Path::new(&shortcut_info.path));
|
save_shortcuts(&shortcuts, Path::new(&shortcut_info.path));
|
||||||
|
|
||||||
|
let duration = start_time.elapsed();
|
||||||
|
|
||||||
|
println!("Finished synchronizing games in: {:?}", duration);
|
||||||
|
|
||||||
if settings.steamgrid_db.enabled {
|
if settings.steamgrid_db.enabled {
|
||||||
let auth_key = &settings.steamgrid_db.auth_key;
|
let auth_key = &settings.steamgrid_db.auth_key;
|
||||||
if let Some(auth_key) = auth_key {
|
if let Some(auth_key) = auth_key {
|
||||||
|
let start_time = std::time::Instant::now();
|
||||||
|
println!("Checking for game images");
|
||||||
let client = steamgriddb_api::Client::new(auth_key);
|
let client = steamgriddb_api::Client::new(auth_key);
|
||||||
let mut search = CachedSearch::new(&client);
|
let mut search = CachedSearch::new(&client);
|
||||||
let known_images = get_users_images(user).unwrap();
|
let known_images = get_users_images(user).unwrap();
|
||||||
@@ -238,6 +246,8 @@ async fn run_sync(settings: &Settings) -> Result<(), Box<dyn Error>> {
|
|||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
search.save();
|
search.save();
|
||||||
|
let duration = start_time.elapsed();
|
||||||
|
println!("Finished getting images in: {:?}", duration);
|
||||||
} else {
|
} else {
|
||||||
println!("Steamgrid DB Auth Key not found, please add one as described here: https://github.com/PhilipK/steam_shortcuts_sync#configuration");
|
println!("Steamgrid DB Auth Key not found, please add one as described here: https://github.com/PhilipK/steam_shortcuts_sync#configuration");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user