diff --git a/data/steam-game-cache.yaml b/data/steam-game-cache.yaml index bd0fbbd3..51384851 100644 --- a/data/steam-game-cache.yaml +++ b/data/steam-game-cache.yaml @@ -370876,8 +370876,7 @@ oslist: windows executable: Ginger.exe type: default -"817628": - state: outdated +"817628": {} "817630": installDir: Island Tribe 3 launch: diff --git a/src/steam.rs b/src/steam.rs index fa8c8bc5..d976f802 100644 --- a/src/steam.rs +++ b/src/steam.rs @@ -23,10 +23,14 @@ impl SteamCache { }); for app_id in app_ids { - let Some(latest) = SteamCacheEntry::fetch_from_id(app_id)? else { - continue; - }; - self.0.insert(app_id.to_string(), latest); + let latest = SteamCacheEntry::fetch_from_id(app_id)?; + self.0.insert( + app_id.to_string(), + latest.unwrap_or_else(|| SteamCacheEntry { + state: State::Handled, + ..Default::default() + }), + ); i += 1; if i % SAVE_INTERVAL == 0 { @@ -122,7 +126,6 @@ mod product_info { use super::*; #[derive(Debug, Default, Clone, serde::Deserialize)] - #[serde(default)] pub struct Response { pub apps: BTreeMap, }