mirror of
https://github.com/Emersont1/itchio.git
synced 2026-03-11 08:54:39 +00:00
Game Folders / Files now respond to --human-folders
This commit is contained in:
parent
624eec9b6a
commit
4ddff68482
1 changed files with 1 additions and 2 deletions
|
|
@ -33,13 +33,12 @@ class Game:
|
|||
matches = re.match(r"https://(.+)\.itch\.io/(.+)", self.link)
|
||||
self.game_slug = matches.group(2)
|
||||
if self.humanFolders:
|
||||
self.name = utils.clean_path(self.data["title"])
|
||||
self.game_slug = utils.clean_path(self.data["title"])
|
||||
self.publisher_slug = self.data.get("user").get("display_name")
|
||||
# This Branch covers the case that the user has not set a display name, and defaults to their username
|
||||
if not self.publisher_slug:
|
||||
self.publisher_slug = self.data.get("user").get("username")
|
||||
else:
|
||||
self.name = self.game_slug
|
||||
self.publisher_slug = matches.group(1)
|
||||
|
||||
self.files = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue