From a3e114b14caef9afa625e741c5272eb30e658655 Mon Sep 17 00:00:00 2001 From: halgari Date: Wed, 4 Dec 2024 11:19:50 -0700 Subject: [PATCH] update remap file --- scripts/rename_folders.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/rename_folders.py b/scripts/rename_folders.py index b49c3e00..897b629a 100644 --- a/scripts/rename_folders.py +++ b/scripts/rename_folders.py @@ -3,7 +3,7 @@ import shutil # Load game name to ID mapping -with open('json/ids.json', 'r') as f: +with open('json/ids.json', 'rb') as f: game_mappings = json.load(f) # Iterate over the directories inside 'json' folder @@ -11,6 +11,6 @@ for game_name in os.listdir(base_path): full_path = os.path.join(base_path, game_name) if os.path.isdir(full_path) and game_name in game_mappings: - game_id = game_mappings[game_name] + game_id = str(game_mappings[game_name]) new_full_path = os.path.join(base_path, game_id) shutil.move(full_path, new_full_path) \ No newline at end of file