bugfix / query genres for artists more vaguely

This commit is contained in:
codey 2025-04-22 07:54:59 -04:00
parent f946a6f81c
commit 557310b0f0

View File

@ -173,7 +173,7 @@ class RadioUtil:
try:
artist = artist.strip()
query = "SELECT genre FROM artist_genre WHERE artist LIKE ?"
params = (f"%{artist}",)
params = (f"%%{artist}%%",)
async with sqlite3.connect(self.artist_genre_db_path, timeout=2) as _db:
_db.row_factory = sqlite3.Row
async with await _db.execute(query, params) as _cursor: