Skip to content

Commit

Permalink
Tweak genius lyric search
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiko2k committed Jan 27, 2024
1 parent 5529919 commit 57503aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t_modules/t_lyrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("]", "")
Expand Down

0 comments on commit 57503aa

Please sign in to comment.