diff --git a/components/http.js b/components/http.js index 5898f82..a1247b1 100644 --- a/components/http.js +++ b/components/http.js @@ -123,7 +123,7 @@ SteamCommunity.prototype._checkCommunityError = function(html, callback) { return err; } - if (typeof html == 'string' && html.match(/g_steamID = false;/) && html.match(/

Sign In<\/h1>/)) { + if (typeof html == 'string' && html.indexOf('g_steamID = false;') > -1 && html.indexOf('Sign In') > -1) { err = new Error('Not Logged In'); callback(err); this._notifySessionExpired(err); diff --git a/components/users.js b/components/users.js index 357bcf4..e5a1d62 100644 --- a/components/users.js +++ b/components/users.js @@ -518,7 +518,7 @@ SteamCommunity.prototype.getUserInventoryContents = function(userID, appID, cont }, qs: { l: language, // Default language - count: 5000, // Max items per 'page' + count: 2000, // Max items per 'page' start_assetid: start }, json: true