Added Beautified JSON output (#30)

This commit is contained in:
Peter Taylor 2022-05-05 09:50:32 +01:00 committed by GitHub
parent 68b7f19420
commit b52405ca18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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']}")