diff --git a/README.md b/README.md index 499aac3..b28d929 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,8 @@ [![license](https://img.shields.io/npm/l/steamcommunity.svg)](https://github.com/DoctorMcKay/node-steamcommunity/blob/master/LICENSE) [![paypal](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=N36YVAT42CZ4G&item_name=node%2dsteamcommunity¤cy_code=USD) -This module provides an easy interface for the Steam Community website. This module can be used to simply login to steamcommunity.com for use with other libraries, or to interact with steamcommunity.com. - -It supports Steam Guard and CAPTCHAs. +This module provides an easy interface for the Steam Community website. This module can be used to simply login to +steamcommunity.com for use with other libraries, or to interact with steamcommunity.com. **Have a question about the module or coding in general? *Do not create a GitHub issue.* GitHub issues are for feature requests and bug reports. Instead, post in the [dedicated forum](https://dev.doctormckay.com/forum/8-node-steamcommunity/). diff --git a/classes/CEconItem.js b/classes/CEconItem.js index 4ccfc9b..ef9af41 100644 --- a/classes/CEconItem.js +++ b/classes/CEconItem.js @@ -68,9 +68,9 @@ function CEconItem(item, description, contextID) { // Restore cache_expiration, if we can (for CS:GO items) if (this.appid == 730 && this.contextid == 2 && this.owner_descriptions) { - let description = this.owner_descriptions.find(d => d.value && d.value.indexOf('Tradable After ') == 0); + let description = this.owner_descriptions.find(d => d.value && d.value.indexOf('Tradable/Marketable After ') == 0); if (description) { - let date = new Date(description.value.substring(15).replace(/[,()]/g, '')); + let date = new Date(description.value.substring(26).replace(/[,()]/g, '')); if (date) { this.cache_expiration = date.toISOString(); } diff --git a/classes/CSteamUser.js b/classes/CSteamUser.js index 8b26516..af0a5d3 100644 --- a/classes/CSteamUser.js +++ b/classes/CSteamUser.js @@ -13,7 +13,7 @@ SteamCommunity.prototype.getSteamUser = function(id, callback) { } var self = this; - this.httpRequest("http://steamcommunity.com/" + (typeof id === 'string' ? "id/" + id : "profiles/" + id.toString()) + "/?xml=1", function(err, response, body) { + this.httpRequest("https://steamcommunity.com/" + (typeof id === 'string' ? "id/" + id : "profiles/" + id.toString()) + "/?xml=1", function(err, response, body) { if (err) { callback(err); return; diff --git a/components/groups.js b/components/groups.js index 1897767..4afecbb 100644 --- a/components/groups.js +++ b/components/groups.js @@ -11,17 +11,17 @@ SteamCommunity.prototype.getGroupMembers = function(gid, callback, members, link if (!link) { if (typeof gid !== 'string') { // It's a SteamID object - link = "http://steamcommunity.com/gid/" + gid.toString() + "/memberslistxml/?xml=1"; + link = "https://steamcommunity.com/gid/" + gid.toString() + "/memberslistxml/?xml=1"; } else { try { var sid = new SteamID(gid); if (sid.type == SteamID.Type.CLAN && sid.isValid()) { - link = "http://steamcommunity.com/gid/" + sid.getSteamID64() + "/memberslistxml/?xml=1"; + link = "https://steamcommunity.com/gid/" + sid.getSteamID64() + "/memberslistxml/?xml=1"; } else { throw new Error("Doesn't particularly matter what this message is"); } } catch (e) { - link = "http://steamcommunity.com/groups/" + gid + "/memberslistxml/?xml=1"; + link = "https://steamcommunity.com/groups/" + gid + "/memberslistxml/?xml=1"; } } } diff --git a/examples/.gitignore b/examples/.gitignore new file mode 100644 index 0000000..39ab291 --- /dev/null +++ b/examples/.gitignore @@ -0,0 +1 @@ +twofactor_*.json diff --git a/package.json b/package.json index 021345b..eb6d680 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "steamcommunity", - "version": "3.48.3", + "version": "3.48.4", "description": "Provides an interface for logging into and interacting with the Steam Community website", "files": [ "/classes",