Only search for shortcuts with names

This commit is contained in:
Philip
2021-09-26 07:27:57 +02:00
parent f2b94b9417
commit dafe091aa6
+4 -1
View File
@@ -24,8 +24,11 @@ pub async fn download_images<'a, 'b>(
format!("{}_logo.png", s.app_id),
];
// if we are missing any of the images we need to search for them
images.iter().any(|image| !known_images.contains(&image))
images.iter().any(|image| !known_images.contains(&image)) && "" != s.app_name
});
if shortcuts_to_search_for.clone().count() == 0 {
return Ok(());
}
let mut search_results = HashMap::new();
for s in shortcuts_to_search_for {
println!("Searching for {}", s.app_name);