From 60b32dcc3e9471eb05ea16b0f01598367210e9cf Mon Sep 17 00:00:00 2001 From: pointfeev Date: Fri, 25 Feb 2022 14:08:04 -0500 Subject: [PATCH] fix attempts to parse appId of 0 --- CreamInstaller/Classes/HttpClientManager.cs | 2 +- CreamInstaller/CreamInstaller.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CreamInstaller/Classes/HttpClientManager.cs b/CreamInstaller/Classes/HttpClientManager.cs index 8838700..1a3826a 100644 --- a/CreamInstaller/Classes/HttpClientManager.cs +++ b/CreamInstaller/Classes/HttpClientManager.cs @@ -54,7 +54,7 @@ internal static class HttpClientManager "//div[@class='recommendation']/div/a"); if (nodes is not null) foreach (HtmlNode node in nodes) - if (int.TryParse(node.Attributes?["data-ds-appid"]?.Value, out int dlcAppId) && !dlcIds.Contains(dlcAppId)) + if (int.TryParse(node.Attributes?["data-ds-appid"]?.Value, out int dlcAppId) && dlcAppId > 0 && !dlcIds.Contains(dlcAppId)) dlcIds.Add(dlcAppId); } diff --git a/CreamInstaller/CreamInstaller.csproj b/CreamInstaller/CreamInstaller.csproj index aae6dbb..f892847 100644 --- a/CreamInstaller/CreamInstaller.csproj +++ b/CreamInstaller/CreamInstaller.csproj @@ -5,7 +5,7 @@ True Resources\ini.ico true - 2.5.0.0 + 2.5.0.1 Resources\ini.ico Automatically generates and installs CreamAPI files for Steam games on the user's computer. It can also generate and install CreamAPI for the Paradox Launcher should the user select a Paradox Interactive game.