From b52405ca18f7e26f2c98b21ee5d1b024c884e510 Mon Sep 17 00:00:00 2001 From: Peter Taylor Date: Thu, 5 May 2022 09:50:32 +0100 Subject: [PATCH] Added Beautified JSON output (#30) --- itchiodl/game.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/itchiodl/game.py b/itchiodl/game.py index 54206ad..54cad46 100644 --- a/itchiodl/game.py +++ b/itchiodl/game.py @@ -60,13 +60,12 @@ class Game: with open(f"{self.publisher_slug}/{self.game_slug}.json", "w") as f: json.dump({ "name": self.name, - "dl_version": 2, "publisher": self.publisher, "link": self.link, "itch_id": self.id, "game_id": self.game_id, "itch_data": self.data, - }, f) + }, f, indent=2) def do_download(self, d, token): print(f"Downloading {d['filename']}")