diff --git a/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SharedInfo.cs b/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SharedInfo.cs index ebac18ed6..aa714b5fc 100644 --- a/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SharedInfo.cs +++ b/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SharedInfo.cs @@ -23,13 +23,13 @@ namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper { internal static class SharedInfo { internal const byte ApiVersion = 1; internal const string ConfigurationPropertyEnabled = nameof(SteamTokenDumperPlugin) + "Enabled"; - internal const ushort ItemsPerSingleRequest = 2048; // Should be synchronized with TimeoutForLongRunningTasksInSeconds + internal const byte AppInfosPerSingleRequest = byte.MaxValue; internal const byte MaximumHoursBetweenRefresh = 8; // Per single bot account, makes sense to be 2 or 3 times less than MinimumHoursBetweenUploads internal const byte MaximumMinutesBeforeFirstUpload = 60; // Must be greater or equal to MinimumMinutesBeforeFirstUpload internal const byte MinimumHoursBetweenUploads = 24; internal const byte MinimumMinutesBeforeFirstUpload = 10; // Must be less or equal to MaximumMinutesBeforeFirstUpload internal const string ServerURL = "https://asf-token-dumper.xpaw.me"; - internal const byte TimeoutForLongRunningTasksInSeconds = 60; // Should be synchronized with ItemsPerSingleRequest + internal const byte TimeoutForLongRunningTasksInSeconds = 60; internal const string Token = "STEAM_TOKEN_DUMPER_TOKEN"; internal static bool HasValidToken => Token.Length == 128; diff --git a/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SteamTokenDumperPlugin.cs b/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SteamTokenDumperPlugin.cs index c9125d52f..19bea0cb6 100644 --- a/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SteamTokenDumperPlugin.cs +++ b/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SteamTokenDumperPlugin.cs @@ -250,11 +250,11 @@ namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper { bot.ArchiLogger.LogGenericInfo($"Retrieving a total of {appIDsToRefresh.Count} app access tokens..."); - HashSet appIDsThisRound = new HashSet(Math.Min(appIDsToRefresh.Count, SharedInfo.ItemsPerSingleRequest)); + HashSet appIDsThisRound = new HashSet(Math.Min(appIDsToRefresh.Count, SharedInfo.AppInfosPerSingleRequest)); using (HashSet.Enumerator enumerator = appIDsToRefresh.GetEnumerator()) { while (true) { - while ((appIDsThisRound.Count < SharedInfo.ItemsPerSingleRequest) && enumerator.MoveNext()) { + while ((appIDsThisRound.Count < SharedInfo.AppInfosPerSingleRequest) && enumerator.MoveNext()) { appIDsThisRound.Add(enumerator.Current); } @@ -289,7 +289,7 @@ namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper { using (HashSet.Enumerator enumerator = appIDsToRefresh.GetEnumerator()) { while (true) { - while ((appIDsThisRound.Count < SharedInfo.ItemsPerSingleRequest) && enumerator.MoveNext()) { + while ((appIDsThisRound.Count < SharedInfo.AppInfosPerSingleRequest) && enumerator.MoveNext()) { appIDsThisRound.Add(enumerator.Current); } @@ -320,6 +320,7 @@ namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper { appIDsThisRound.Clear(); Dictionary appChangeNumbers = new Dictionary(); + HashSet> depotTasks = new HashSet>(); foreach (SteamApps.PICSProductInfoCallback.PICSProductInfo app in response.Results.SelectMany(result => result.Apps.Values)) {