Finalize dropped albums list with correct 8 albums and balance new albums

- Corrected dropped albums to exactly 8 albums through detailed comparison analysis
- Updated dropped albums list (ranks 501-508) with proper albums that were truly removed
- Fixed "New in 2023" markings to show only 8 albums (balancing the 8 dropped)
- Downloaded cover art for all 8 dropped albums
- Removed incorrect cover art files for albums that weren't actually dropped
- Updated data files with corrected artist/album name formatting for accurate matching

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Johan Lundberg 2025-07-01 03:32:16 +02:00
parent e64b267ee3
commit 88a6434132
31 changed files with 1082 additions and 217 deletions

View file

@ -0,0 +1,56 @@
#!/usr/bin/env python3
"""
Update the main CSV with the correct 8 dropped albums, removing all incorrect entries.
"""
import csv
def main():
# The 8 correct dropped albums
correct_dropped = [
{'rank': 48, 'artist': 'Bob Marley and the Wailers', 'album': 'Legend'},
{'rank': 170, 'artist': 'Cream', 'album': 'Disraeli Gears'},
{'rank': 351, 'artist': 'Roxy Music', 'album': 'For Your Pleasure'},
{'rank': 358, 'artist': 'Sonic Youth', 'album': 'Goo'},
{'rank': 430, 'artist': 'Elvis Costello', 'album': 'My Aim Is True'},
{'rank': 437, 'artist': 'Primal Scream', 'album': 'Screamadelica'},
{'rank': 466, 'artist': 'The Beach Boys', 'album': 'The Beach Boys Today!'},
{'rank': 491, 'artist': 'Harry Styles', 'album': 'Fine Line'}
]
# Read current data, keeping only ranks 1-500
updated_albums = []
with open('top_500_albums_2023.csv', 'r', encoding='utf-8') as file:
reader = csv.DictReader(file)
for row in reader:
rank = int(row['Rank'])
if rank <= 500:
updated_albums.append(row)
print(f"✅ Kept {len(updated_albums)} albums from ranks 1-500")
# Add the 8 correct dropped albums
for i, dropped in enumerate(correct_dropped, 1):
updated_albums.append({
'Rank': str(500 + i),
'Artist': dropped['artist'],
'Album': dropped['album'],
'Status': f"Dropped (was #{dropped['rank']} in 2020)",
'Info': '',
'Description': ''
})
print(f"✅ Added {len(correct_dropped)} correct dropped albums")
# Write updated CSV
with open('top_500_albums_2023.csv', 'w', newline='', encoding='utf-8') as file:
fieldnames = ['Rank', 'Artist', 'Album', 'Status', 'Info', 'Description']
writer = csv.DictWriter(file, fieldnames=fieldnames)
writer.writeheader()
writer.writerows(updated_albums)
print(f"✅ Updated CSV with {len(updated_albums)} total albums (500 + 8 dropped)")
print(f"📁 Saved to: top_500_albums_2023.csv")
if __name__ == "__main__":
main()