Skip to content

Commit

Permalink
lowercase names for pictures
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonDorise committed Dec 15, 2024
1 parent 81d63bc commit 91011a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/retro-library/generate_game_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def collect_game_data(system_dir, extensions):
name_cleaned = re.sub(r'_+', '_', name_cleaned)
name_cleaned = name_cleaned.replace('+', '').replace('&', '').replace('!', '').replace("'", '').replace('.', '')
name_cleaned_pegasus = name.replace(',_', ',')

name_cleaned = name_cleaned.lower()
# Calculate the ROM hash
rom_hash = calculate_hash(file_path)

Expand Down
2 changes: 1 addition & 1 deletion tools/retro-library/missing_artwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def collect_game_data(system_dir, extensions):
name_cleaned = name_cleaned.strip().replace(' ', '_').replace('-', '_')
name_cleaned = re.sub(r'_+', '_', name_cleaned)
name_cleaned = name_cleaned.replace('+', '').replace('&', '').replace('!', '').replace("'", '').replace('.', '')

name_cleaned = name_cleaned.lower()
rom_hash = calculate_hash(file_path)

# Check for missing images
Expand Down
2 changes: 1 addition & 1 deletion tools/retro-library/missing_artwork_platforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def has_missing_images(system_dir, extensions):
name_cleaned = name_cleaned.replace(' ', '_').replace('-', '_')
name_cleaned = re.sub(r'_+', '_', name_cleaned)
name_cleaned = name_cleaned.replace('+', '').replace('&', '').replace('!', '').replace("'", '').replace('.', '')

name_cleaned = name_cleaned.lower()
img_path = os.path.join(images_path, f"{platform}/{name_cleaned}.jpg")
if not os.path.exists(img_path):
return True
Expand Down

0 comments on commit 91011a6

Please sign in to comment.