Let's hope this is the last one

This commit is contained in:
JustArchi
2016-06-20 13:51:17 +02:00
parent f6a8d16c85
commit 3d19a69c60

View File

@@ -946,8 +946,15 @@ namespace ArchiSteamFarm {
}
private async Task<bool> 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<string, string> data = new Dictionary<string, string>(1) {
Dictionary<string, string> data = new Dictionary<string, string>(2) {
{ "sessionid", sessionID },
{ "language", "english" }
};