From 956b5e669369e2388928286ed7dbf772909ff5ae Mon Sep 17 00:00:00 2001 From: Jeddunk Date: Mon, 25 Dec 2023 20:56:54 +0100 Subject: [PATCH] Use latest SteamStorefrontAPI version --- auto-creamapi.sln | 6 ------ auto-creamapi/Services/CacheService.cs | 2 +- auto-creamapi/auto-creamapi.csproj | 5 +---- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/auto-creamapi.sln b/auto-creamapi.sln index cc934dc..78be129 100644 --- a/auto-creamapi.sln +++ b/auto-creamapi.sln @@ -5,8 +5,6 @@ VisualStudioVersion = 17.8.34330.188 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "auto-creamapi", "auto-creamapi\auto-creamapi.csproj", "{26060B32-199E-4366-8FDE-6B1E10E0EF62}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SteamStorefrontAPI", "SteamStorefrontAPI\SteamStorefrontAPI\SteamStorefrontAPI.csproj", "{ECDB602D-4823-4F8E-8BAA-9554A08FA90F}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -17,10 +15,6 @@ Global {26060B32-199E-4366-8FDE-6B1E10E0EF62}.Debug|Any CPU.Build.0 = Debug|Any CPU {26060B32-199E-4366-8FDE-6B1E10E0EF62}.Release|Any CPU.ActiveCfg = Release|Any CPU {26060B32-199E-4366-8FDE-6B1E10E0EF62}.Release|Any CPU.Build.0 = Release|Any CPU - {ECDB602D-4823-4F8E-8BAA-9554A08FA90F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {ECDB602D-4823-4F8E-8BAA-9554A08FA90F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {ECDB602D-4823-4F8E-8BAA-9554A08FA90F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {ECDB602D-4823-4F8E-8BAA-9554A08FA90F}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/auto-creamapi/Services/CacheService.cs b/auto-creamapi/Services/CacheService.cs index 9cc0fa2..223bbe5 100644 --- a/auto-creamapi/Services/CacheService.cs +++ b/auto-creamapi/Services/CacheService.cs @@ -133,7 +133,7 @@ namespace auto_creamapi.Services string archiveJson = await client.GetStringAsync($"https://archive.org/wayback/available?url={steamDbUrl}"); var archiveResult = JsonSerializer.Deserialize(archiveJson); - if (archiveResult == null || archiveResult.ArchivedSnapshots.Closest.Status != "200") + if (archiveResult == null || archiveResult.ArchivedSnapshots.Closest?.Status != "200") { return dlcList; } diff --git a/auto-creamapi/auto-creamapi.csproj b/auto-creamapi/auto-creamapi.csproj index 5830d4e..09956af 100644 --- a/auto-creamapi/auto-creamapi.csproj +++ b/auto-creamapi/auto-creamapi.csproj @@ -33,6 +33,7 @@ + @@ -54,8 +55,4 @@ - - - - \ No newline at end of file