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 = []