mirror of
https://github.com/Emersont1/itchio.git
synced 2026-03-11 08:54:39 +00:00
response
This commit is contained in:
parent
58d10805ea
commit
e8ef0f8a5a
1 changed files with 2 additions and 2 deletions
|
|
@ -39,11 +39,11 @@ class Library:
|
|||
|
||||
def load_game(self, publisher, title):
|
||||
"""Load a game by publisher and title"""
|
||||
requests.get(
|
||||
rsp = requests.get(
|
||||
f"https://{publisher}.itch.io/{title}/data.json",
|
||||
headers={"Authorization": self.login},
|
||||
)
|
||||
j = json.loads(r.text)
|
||||
j = json.loads(rsp.text)
|
||||
self.games.append(Game(j["id"]))
|
||||
|
||||
def load_games(self, publisher):
|
||||
|
|
|
|||
Loading…
Reference in a new issue