Add prefer_animated feature

The feature lets you download animated images first, and then try
getting static images.
This commit is contained in:
Philip Kristoffersen
2021-11-03 12:02:37 +01:00
parent 8f5a1e0105
commit e16bd65742
4 changed files with 46 additions and 11 deletions
+5 -1
View File
@@ -36,7 +36,11 @@ pub async fn run_sync(settings: &Settings) -> Result<(), Box<dyn Error>> {
}
if settings.steamgrid_db.enabled {
download_images_for_users(settings, &userinfo_shortcuts).await;
if settings.steamgrid_db.prefer_animated {
println!("downloading animated images");
download_images_for_users(settings, &userinfo_shortcuts,true).await;
}
download_images_for_users(settings, &userinfo_shortcuts,false).await;
}
Ok(())