From 195484441e8fb3b76d3894324407173e15eec28b Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Wed, 8 Apr 2026 12:49:38 -0700 Subject: [PATCH] Fix all artist names stored as lowercase in database A @staticmethod _normalize_artist_name (for liked artists dedup) shadowed the instance method of the same name (for artist import). The static version lowercased everything, so every artist name was stored lowercase during database scans. Renamed the static method to _normalize_artist_name_for_dedup. Existing lowercase names will be corrected automatically on the next database scan. --- database/music_database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/music_database.py b/database/music_database.py index 3d426574..34e51570 100644 --- a/database/music_database.py +++ b/database/music_database.py @@ -8797,7 +8797,7 @@ class MusicDatabase: # ==================== Liked Artists Pool Methods ==================== @staticmethod - def _normalize_artist_name(name: str) -> str: + def _normalize_artist_name_for_dedup(name: str) -> str: """Normalize artist name for deduplication. Lowercases, strips diacritics, removes 'the ' prefix, collapses whitespace.""" import unicodedata @@ -8836,7 +8836,7 @@ class MusicDatabase: # Reject known placeholder images if self._is_placeholder_image(image_url): image_url = None - normalized = self._normalize_artist_name(artist_name) + normalized = self._normalize_artist_name_for_dedup(artist_name) if not normalized: return False