Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
sna1lBoy committed May 2, 2024
1 parent 971772d commit 68537e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions libraries/webUiHelpers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import re


# removes artifacts from webscraping
def formatGeniusLyrics(lyrics, artist):

Expand All @@ -22,7 +21,7 @@ def formatGeniusLyrics(lyrics, artist):

# remove ticket ad
lyrics = re.sub(r'\$[0-9]+', '$', lyrics)
lyrics = lyrics.replace("See" + artist + "liveGet tickets as low as $", "")
lyrics = lyrics.replace("See" + artist + "LiveGet tickets as low as $", "")

return lyrics

Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def lyricsLoop():

# format lyrics if there are any
if not error:
lyrics = webUiHelpers.formatGeniusLyrics(lyrics)
lyrics = webUiHelpers.formatGeniusLyrics(lyrics, artist)

# check if cache limit is being reached
cache = os.listdir("files/cache")
Expand Down

0 comments on commit 68537e7

Please sign in to comment.