From 3d19a69c608ad18fa862c4f3923fa604213edcb9 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Mon, 20 Jun 2016 13:51:17 +0200 Subject: [PATCH] Let's hope this is the last one --- ArchiSteamFarm/ArchiWebHandler.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm/ArchiWebHandler.cs b/ArchiSteamFarm/ArchiWebHandler.cs index b88a85a76..619398dfb 100644 --- a/ArchiSteamFarm/ArchiWebHandler.cs +++ b/ArchiSteamFarm/ArchiWebHandler.cs @@ -946,8 +946,15 @@ namespace ArchiSteamFarm { } private async Task SetLanguage() { + string sessionID = WebBrowser.CookieContainer.GetCookieValue(SteamCommunityURL, "sessionid"); + if (string.IsNullOrEmpty(sessionID)) { + Logging.LogNullError(nameof(sessionID), Bot.BotName); + return false; + } + string request = SteamCommunityURL + "/actions/SetLanguage"; - Dictionary data = new Dictionary(1) { + Dictionary data = new Dictionary(2) { + { "sessionid", sessionID }, { "language", "english" } };