mirror of
https://github.com/Emersont1/itchio.git
synced 2026-03-11 08:54:39 +00:00
Added Beautified JSON output (#30)
This commit is contained in:
parent
68b7f19420
commit
b52405ca18
1 changed files with 1 additions and 2 deletions
|
|
@ -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']}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue