Make use only of trading items, closes #109

This commit is contained in:
JustArchi
2016-02-16 07:58:01 +01:00
parent 120691c6bf
commit c2cd7ca52d
2 changed files with 3 additions and 3 deletions

View File

@@ -392,10 +392,10 @@ namespace ArchiSteamFarm {
return true;
}
internal async Task<List<SteamItem>> GetInventory() {
internal async Task<List<SteamItem>> GetMyTradingInventory() {
JObject jObject = null;
for (byte i = 0; i < WebBrowser.MaxRetries && jObject == null; i++) {
jObject = await WebBrowser.UrlGetToJObject("https://steamcommunity.com/my/inventory/json/753/6", Cookie).ConfigureAwait(false);
jObject = await WebBrowser.UrlGetToJObject("https://steamcommunity.com/my/inventory/json/753/6?trading=1", Cookie).ConfigureAwait(false);
}
if (jObject == null) {

View File

@@ -522,7 +522,7 @@ namespace ArchiSteamFarm {
}
await Trading.LimitInventoryRequestsAsync().ConfigureAwait(false);
List<SteamItem> inventory = await ArchiWebHandler.GetInventory().ConfigureAwait(false);
List<SteamItem> inventory = await ArchiWebHandler.GetMyTradingInventory().ConfigureAwait(false);
if (inventory == null || inventory.Count == 0) {
return "Nothing to send, inventory seems empty!";