mirror of
https://github.com/Emersont1/itchio.git
synced 2026-03-11 08:54:39 +00:00
in case some games don't have names
This commit is contained in:
parent
ad16ad647a
commit
4dc4d5c368
2 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "itchio"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
description = "Python Scripts for downloading / archiving your itchio library"
|
||||
authors = ["Peter Taylor <me@et1.uk>"]
|
||||
license = "MIT"
|
||||
|
|
|
|||
|
|
@ -54,5 +54,6 @@ class Game:
|
|||
print(j)
|
||||
|
||||
# Download
|
||||
file = d['filename'] or d['display_name'] or d['id']
|
||||
url = f"https://api.itch.io/uploads/{d['id']}/download?api_key={token}&download_key_id={self.id}&uuid={j['uuid']}"
|
||||
itchio.utils.download_url(url, f"{self.publisher_slug}/{self.game_slug}/{d['filename']}", self.name +" - "+d["filename"])
|
||||
itchio.utils.download_url(url, f"{self.publisher_slug}/{self.game_slug}/{file}", self.name +" - "+file)
|
||||
|
|
|
|||
Loading…
Reference in a new issue