From 05c50ed6e8aa357653d2034f98276e93a353635d Mon Sep 17 00:00:00 2001 From: Evgeniy Kirov Date: Wed, 31 Oct 2018 10:39:29 +0300 Subject: [PATCH 1/4] changed pinevents a bit --- fut/pin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fut/pin.py b/fut/pin.py index 3d602dd..2bb77b1 100644 --- a/fut/pin.py +++ b/fut/pin.py @@ -35,7 +35,7 @@ def __init__(self, sku=None, sid='', nucleus_id=0, persona_id='', dob=False, pla self.sku = sku or re.search('enums.SKU.FUT="(.+?)"', rc).group(1) self.rel = release_type - self.gid = re.search('gid:([0-9]+?)', rc).group(1) + self.gid = int(re.search('gid:([0-9]+?)', rc).group(1)) self.plat = 'web' # where is it? WEB:? self.et = re.search('et:"(.+?)"', rc).group(1) self.pidt = re.search('pidt:"(.+?)"', rc).group(1) @@ -49,7 +49,7 @@ def __init__(self, sku=None, sid='', nucleus_id=0, persona_id='', dob=False, pla self.r.headers['x-ea-game-id-type'] = self.tidt self.r.headers['x-ea-taxv'] = self.taxv - self.custom = {"networkAccess": "G"} # wifi? + self.custom = {"networkAccess": "W"} # wifi? # TODO?: full boot process when there is no session (boot start) self.custom['service_plat'] = platform[:3] @@ -108,13 +108,13 @@ def send(self, events, fast=False): "custom": self.custom, "et": self.et, "events": events, - "gid": self.gid, # convert to int? + "gid": self.gid, "is_sess": self.sid != '', "loc": "en_US", "plat": self.plat, "rel": self.rel, "sid": self.sid, - "taxv": self.taxv, # convert to float? + "taxv": self.taxv, "tid": self.sku, "tidt": self.tidt, "ts_post": self.__ts(), From 595356a3036fd8a9f48891e86bce2e4bdd2154f1 Mon Sep 17 00:00:00 2001 From: Evgeniy Kirov Date: Fri, 9 Nov 2018 14:26:08 +0300 Subject: [PATCH 2/4] changed initial value of s in pinevents --- fut/pin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fut/pin.py b/fut/pin.py index 2bb77b1..eb1b243 100644 --- a/fut/pin.py +++ b/fut/pin.py @@ -53,7 +53,7 @@ def __init__(self, sku=None, sid='', nucleus_id=0, persona_id='', dob=False, pla # TODO?: full boot process when there is no session (boot start) self.custom['service_plat'] = platform[:3] - self.s = 2 # event id | before "was sent" without session/persona/nucleus id so we can probably omit + self.s = 1 # event id | before "was sent" without session/persona/nucleus id so we can probably omit def __ts(self): # TODO: add ability to random something From 561fefdc5fb2658fd4834204941a25072a4b5e81 Mon Sep 17 00:00:00 2001 From: Evgeniy Kirov Date: Wed, 22 May 2019 08:16:35 +0300 Subject: [PATCH 3/4] removed sku_b from auctionhouse --- fut/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fut/core.py b/fut/core.py index 053b06c..3f88471 100644 --- a/fut/core.py +++ b/fut/core.py @@ -1308,7 +1308,7 @@ def sell(self, item_id, bid, buy_now, duration=3600, fast=False): # TODO: auto send to tradepile data = {'buyNowPrice': buy_now, 'startingBid': bid, 'duration': duration, 'itemData': {'id': item_id}} - rc = self.__request__(method, url, data=json.dumps(data), params={'sku_b': self.sku_b}) + rc = self.__request__(method, url, data=json.dumps(data)) if not fast: # tradeStatus check like webapp do self.tradeStatus(rc['id']) return rc['id'] From cf5051e9d0849deff7457fd4f6b398e8a9f3a012 Mon Sep 17 00:00:00 2001 From: Evgeniy Kirov Date: Wed, 22 May 2019 08:19:23 +0300 Subject: [PATCH 4/4] changed bid method params --- fut/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fut/core.py b/fut/core.py index 3f88471..66efcea 100644 --- a/fut/core.py +++ b/fut/core.py @@ -1104,7 +1104,7 @@ def bid(self, trade_id, bid, fast=False): return False # TODO: add exceptions data = {'bid': bid} try: - rc = self.__request__(method, url, data=json.dumps(data), params={'sku_b': self.sku_b}, fast=fast)[ + rc = self.__request__(method, url, data=json.dumps(data), params={'client': 'webcomp'}, fast=fast)[ 'auctionInfo'][0] except PermissionDenied: # too slow, somebody took it already :-( return False