From e8ef0f8a5a2afdca33452acfe139f3e6f1e8be5f Mon Sep 17 00:00:00 2001 From: Peter Taylor Date: Thu, 5 May 2022 15:52:27 +0100 Subject: [PATCH] response --- itchiodl/library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/itchiodl/library.py b/itchiodl/library.py index 452a3bf..e91b290 100644 --- a/itchiodl/library.py +++ b/itchiodl/library.py @@ -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):