mirror of
https://github.com/frozenpandaman/s3s.git
synced 2026-09-30 13:16:55 -05:00
Merge branch 'frozenpandaman:master' into master
This commit is contained in:
3
iksm.py
3
iksm.py
@@ -320,7 +320,8 @@ def get_bullet(web_service_token, web_view_ver, app_user_agent, user_lang, user_
|
||||
bullet_resp = json.loads(r.text)
|
||||
bullet_token = bullet_resp["bulletToken"]
|
||||
except (json.decoder.JSONDecodeError, TypeError):
|
||||
print("Got non-JSON response from Nintendo.")
|
||||
print("Got non-JSON response from Nintendo (in api/bullet_tokens step:")
|
||||
print(bullet_resp)
|
||||
sys.exit(1)
|
||||
except:
|
||||
print("Error from Nintendo (in api/bullet_tokens step):")
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
beautifulsoup4
|
||||
msgpack_python
|
||||
packaging
|
||||
Pillow
|
||||
requests
|
||||
|
||||
4
s3s.py
4
s3s.py
@@ -344,7 +344,7 @@ def set_scoreboard(battle):
|
||||
p_dict["me"] = "yes" if player["isMyself"] else "no"
|
||||
p_dict["name"] = player["name"]
|
||||
try:
|
||||
p_dict["number"] = player["nameId"] # splashtag number
|
||||
p_dict["number"] = str(player["nameId"]) # splashtag # - can contain alpha chars too... (why!!!)
|
||||
except KeyError: # may not be present if first battle as "Player"
|
||||
pass
|
||||
p_dict["splashtag_title"] = player["byname"] # splashtag title
|
||||
@@ -367,7 +367,7 @@ def set_scoreboard(battle):
|
||||
p_dict["me"] = "no"
|
||||
p_dict["name"] = player["name"]
|
||||
try:
|
||||
p_dict["number"] = player["nameId"]
|
||||
p_dict["number"] = str(player["nameId"])
|
||||
except:
|
||||
pass
|
||||
p_dict["splashtag_title"] = player["byname"]
|
||||
|
||||
Reference in New Issue
Block a user