Compare commits
2 Commits
3c736674ac
...
0005f3d74b
Author | SHA1 | Date | |
---|---|---|---|
0005f3d74b | |||
67d289905c |
@ -101,14 +101,17 @@ namespace auto_creamapi.Services
|
||||
|
||||
public async Task<List<SteamApp>> GetListOfDlc(SteamApp steamApp, bool useSteamDb, bool ignoreUnknown)
|
||||
{
|
||||
MyLogger.Log.Information("Get DLC");
|
||||
MyLogger.Log.Debug("Start: GetListOfDlc");
|
||||
var dlcList = new List<SteamApp>();
|
||||
try
|
||||
{
|
||||
if (steamApp != null)
|
||||
{
|
||||
var steamAppDetails = await AppDetails.GetAsync(steamApp.AppId).ConfigureAwait(false);
|
||||
if (steamAppDetails != null)
|
||||
{
|
||||
MyLogger.Log.Debug("Type for Steam App {Name}: \"{Type}\"", steamApp.Name, steamAppDetails.Type);
|
||||
MyLogger.Log.Debug("Type for Steam App {Name}: \"{Type}\"", steamApp.Name,
|
||||
steamAppDetails.Type);
|
||||
if (steamAppDetails.Type == "game" | steamAppDetails.Type == "demo")
|
||||
{
|
||||
steamAppDetails.DLC.ForEach(x =>
|
||||
@ -179,6 +182,7 @@ namespace auto_creamapi.Services
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dlcList.ForEach(x => MyLogger.Log.Debug("{AppId}={Name}", x.AppId, x.Name));
|
||||
MyLogger.Log.Information("Got DLC from SteamDB successfully...");
|
||||
}
|
||||
@ -194,7 +198,7 @@ namespace auto_creamapi.Services
|
||||
}
|
||||
else
|
||||
{
|
||||
MyLogger.Log.Error("Could not get DLC...");
|
||||
MyLogger.Log.Error("Could not get DLC: Could not get Steam App details");
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -202,6 +206,14 @@ namespace auto_creamapi.Services
|
||||
MyLogger.Log.Error("Could not get DLC: Invalid Steam App");
|
||||
}
|
||||
|
||||
//return dlcList;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MyLogger.Log.Error("Could not get DLC!");
|
||||
Console.WriteLine(e);
|
||||
}
|
||||
|
||||
return dlcList;
|
||||
}
|
||||
}
|
||||
|
@ -5,12 +5,12 @@
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<RootNamespace>auto_creamapi</RootNamespace>
|
||||
<UseWPF>true</UseWPF>
|
||||
<PackageVersion>2.1.6</PackageVersion>
|
||||
<PackageVersion>2.1.7</PackageVersion>
|
||||
<Title>auto-creamapi</Title>
|
||||
<Authors>Jeddunk</Authors>
|
||||
<Company>jeddunk.xyz</Company>
|
||||
<AssemblyVersion>2.1.6</AssemblyVersion>
|
||||
<FileVersion>2.1.6</FileVersion>
|
||||
<AssemblyVersion>2.1.7</AssemblyVersion>
|
||||
<FileVersion>2.1.7</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||
|
Loading…
Reference in New Issue
Block a user