From 57503aad52de45b235bda370e5227aadc1cbb546 Mon Sep 17 00:00:00 2001 From: Taiko2k Date: Sat, 27 Jan 2024 14:48:21 +1300 Subject: [PATCH] Tweak genius lyric search --- t_modules/t_lyrics.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t_modules/t_lyrics.py b/t_modules/t_lyrics.py index 0ef4a1f4b..8e5d197ad 100644 --- a/t_modules/t_lyrics.py +++ b/t_modules/t_lyrics.py @@ -70,6 +70,8 @@ def ovh(artist, title): def genius(artist, title, return_url=False): + artist = artist.split('feat.')[0] + title = title.split('(feat.')[0] line = f"{artist}-{title}" line = re.sub("[,._@!#%^*+:;'()]", "", line) line = line.replace("]", "")