From 1b68b596a2c6ab079c04e714478c22ea731831f0 Mon Sep 17 00:00:00 2001 From: Peter Taylor Date: Wed, 18 May 2022 13:53:01 +0100 Subject: [PATCH] response changes to bring it inline with style --- itchiodl/library.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/itchiodl/library.py b/itchiodl/library.py index 822100d..df0e8f0 100644 --- a/itchiodl/library.py +++ b/itchiodl/library.py @@ -49,7 +49,8 @@ class Library: f"https://api.itch.io/games/{game_id}", headers={"Authorization": self.login}, ) - self.games.append(Game(json.loads(gsp.text))) + k = json.loads(gsp.text) + self.games.append(Game(k)) def load_games(self, publisher): """Load all games by publisher""" @@ -61,7 +62,8 @@ class Library: f"https://api.itch.io/games/{game_id}", headers={"Authorization": self.login}, ) - self.games.append(Game(json.loads(gsp.text))) + k = json.loads(gsp.text) + self.games.append(Game(k)) def download_library(self, platform=None): """Download all games in the library"""