If recently played is private, games returns 0

This commit is contained in:
2025-05-27 02:27:44 +02:00
parent 92397eea18
commit c2b1327286
2 changed files with 3 additions and 0 deletions

View File

@ -139,6 +139,8 @@ public class Tracker : IDisposable
{
Log.Debug($"Updating game times for player {player}");
GetRecentlyPlayedGames recentlyPlayed = Steam.GetRecentlyPlayedGames(player.SteamId);
if (recentlyPlayed.total_count < 1)
return;
foreach (SteamGame recentlyPlayedGame in recentlyPlayed.games)
{
string? iconUrlStr = recentlyPlayedGame.img_icon_url is not null