From 67d3189bfe6c004b69dbe232ccc51dc97a6a0fa9 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 8 Nov 2023 01:44:16 -0700 Subject: [PATCH] commit before checkout master --- player_games.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/player_games.py b/player_games.py index 0d8507d..96cb292 100644 --- a/player_games.py +++ b/player_games.py @@ -46,9 +46,19 @@ def playerMonthly(url=None): return games # Multithreaded games download -def multiThredd(username, archive): - with open(archive) as f: - archive = json.load(f) +def threddGames(username=None, archive=None): + + try: + path = os.getcwd()+'/archives' + os.makedirs(path) + except OSError: + pass + + if archive: + with open(archive) as f: + archive = json.load(f) + else: + archive = playerArchives(username) # async download games games_list = []