Skip to content

Commit

Permalink
drop simplejson & update card_info_url
Browse files Browse the repository at this point in the history
  • Loading branch information
oczkers committed Oct 7, 2018
1 parent 729ac2a commit 3481e2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fut/extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

import requests
import time
from simplejson.scanner import JSONDecodeError
#from simplejson.scanner import JSONDecodeError
from json import JSONDecodeError

# python2 fix
try:
Expand Down
2 changes: 1 addition & 1 deletion fut/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
# TODO: read sku's from https://utas.mob.v1.fut.ea.com/ut/shards/v2

# TODO: card info url not found yet
card_info_url = 'https://fifa18.content.easports.com/fifa/fltOnlineAssets/B1BA185F-AD7C-4128-8A64-746DE4EC5A82/2018/fut/items/web/' # TODO: get hash from somewhere, dynamic year
card_info_url = 'https://fifa19.content.easports.com/fifa/fltOnlineAssets/7D49A6B1-760B-4491-B10C-167FBC81D58A/2019/fut/items/web/' # TODO: get hash from somewhere, dynamic year
# TODO: could be nice to add locals on startup
messages_url = 'https://www.easports.com/fifa/ultimate-team/web-app/loc/en_US.json' # TODO: needs to base64 decoded.

2 comments on commit 3481e2f

@derSoerrn95
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found the variables of year and hash. They're in the html sourcecode. Check out line 23-26

view-source:https://www.easports.com/de/fifa/ultimate-team/web-app/

@oczkers
Copy link
Member Author

@oczkers oczkers commented on 3481e2f Oct 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parsing this is prepared here but i didn't have an idea how to implement full dynamic urls creation outside launch method (some info from urls.py is needed before we can parse it) - it's already way too big and hard to read.

Please sign in to comment.