Skip to content

Commit 3d19a69

Browse files
committed
Let's hope this is the last one
1 parent f6a8d16 commit 3d19a69

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ArchiSteamFarm/ArchiWebHandler.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,8 +946,15 @@ private async Task<bool> UnlockParentalAccount(string parentalPin) {
946946
}
947947

948948
private async Task<bool> SetLanguage() {
949+
string sessionID = WebBrowser.CookieContainer.GetCookieValue(SteamCommunityURL, "sessionid");
950+
if (string.IsNullOrEmpty(sessionID)) {
951+
Logging.LogNullError(nameof(sessionID), Bot.BotName);
952+
return false;
953+
}
954+
949955
string request = SteamCommunityURL + "/actions/SetLanguage";
950-
Dictionary<string, string> data = new Dictionary<string, string>(1) {
956+
Dictionary<string, string> data = new Dictionary<string, string>(2) {
957+
{ "sessionid", sessionID },
951958
{ "language", "english" }
952959
};
953960

0 commit comments

Comments
 (0)