GVRLNKMK
6e20fbe299
Fix CEconItem crash when Tradable/Marketable After date isn't day-first
...
CEconItem destructured the day-first date regex match without a null
check, throwing 'match is not iterable' for CS2 items whose
owner_descriptions use the legacy month-first format (e.g. 'Tradable/
Marketable After Jul 11, 2025 (2:00:00)'). Running in the constructor,
this made getInventoryContents()/getUserInventoryContents() reject the
whole inventory.
Guard the null match, fall back to parsing the legacy month-first
format, and only set cache_expiration for a valid date. Day-first
strings are unchanged; backwards-compatible.
2026-07-10 17:25:18 +03:00
Ricardo Rocha
0f7fc98ab5
fix: Invalid time value
2026-06-26 19:14:28 -03:00
Rafal Wiecek
bc8893fedd
feat: add asset properties to inventory items
2026-03-16 15:52:32 +01:00
Alex Corn
0a307de9b9
Prevent descriptions overwriting base econ item properties
2025-05-28 05:23:25 -04:00
Benjamin Tyler
c97351543a
Fixes cache_expiration restore for CS2 Items
...
As of Oct 2024, CS2 Item owner_description has changed from "Tradable After" to "Tradable/Marketable After".
2024-10-04 16:04:47 +01:00
Alex Corn
737aa9dc41
Added comment
2020-07-01 00:52:15 -04:00
Alex Corn
2f9b24c447
Only attempt to delete this.currency if it actually exists
2020-06-30 22:24:04 -04:00
Alex Corn
21c4ba3e27
Restore cache_expiration from game-specific data for backwards compatibility
...
(Fixes #229 )
2019-09-21 04:27:39 -04:00
Alexander Corn
489c0441a5
Restore market_fee_app property to CEconItem for Steam Community items
2016-12-15 00:53:26 -05:00
Alexander Corn
d120d09970
Fixed tag data to be identical to old endpoint
2016-12-13 01:53:30 -05:00
Alexander Corn
9a3cf927c0
Fixed some more currency detection
2016-12-13 01:28:48 -05:00
Alexander Corn
06df0ecd42
Handle currencies with new endpoint's data in CEconItem
2016-12-13 00:45:23 -05:00
João Silva
b789e13a70
Update inventory loading endpoint ( #148 )
...
* Update inventory loading endpoint
Should fix 429s :)
* Fix missing contextID parameter at CEconItem class
* Revert "Fix missing contextID parameter at CEconItem class"
This reverts commit 416321105b .
* Revert "Revert "Fix missing contextID parameter at CEconItem class""
This reverts commit 49ecd46954 .
* Update #1
2016-12-13 00:23:02 -05:00
Alexander Corn
1f69d1fc04
CEconItem: is_currency is bool, fraudwarnings/descriptions are arrays
2015-12-21 14:22:07 -05:00
Alexander Corn
d975fdfba8
Added getInventoryHistory method
2015-09-09 12:04:28 -04:00
Alexander Corn
82f1d490f9
Added contextid property to CEconItem objects
2015-09-07 00:10:32 -04:00
Alexander Corn
09cd81b607
Added CEconItem and getUserInventory
2015-09-07 00:00:19 -04:00