mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Merge branch 'main' of https://github.com/PhilipK/steam_shortcuts_sync
This commit is contained in:
Generated
+2
-2
@@ -1102,9 +1102,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "steam_shortcuts_util"
|
||||
version = "1.1.2"
|
||||
version = "1.1.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "51eecf84626e7ba46667be999ca124d9cd16c9feb09918dd991eccbb4ac298e7"
|
||||
checksum = "66ae244ca0579ba5b4e05a52a3afef6f23412e85b8eb448dbf0aa92d0687cb50"
|
||||
dependencies = [
|
||||
"ascii",
|
||||
"crc32fast",
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ edition = "2018"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
[dependencies]
|
||||
steam_shortcuts_util = "1.1.2"
|
||||
steam_shortcuts_util = "1.1.4"
|
||||
steamgriddb_api = "0.2,0"
|
||||
serde = { version = "1.0.130", features = ["derive"] }
|
||||
serde_json = "1.0.68"
|
||||
|
||||
@@ -28,7 +28,7 @@ impl<'a> CachedSearch<'a> {
|
||||
if let Some(result) = cached_result {
|
||||
return Ok(Some(result.1));
|
||||
}
|
||||
|
||||
println!("Searching for {}", query);
|
||||
let search = self.client.search(query).await?;
|
||||
if search.is_empty() {
|
||||
return Ok(None);
|
||||
|
||||
@@ -31,7 +31,6 @@ pub async fn download_images<'a, 'b>(
|
||||
}
|
||||
let mut search_results = HashMap::new();
|
||||
for s in shortcuts_to_search_for {
|
||||
println!("Searching for {}", s.app_name);
|
||||
let search = search.search(s.app_id, s.app_name).await?;
|
||||
if let Some(search) = search {
|
||||
search_results.insert(s.app_id, search);
|
||||
|
||||
Reference in New Issue
Block a user